Queries & Responses for 14 August 2005

How many km in a marathon?
Here you go.
#!perl
my $sentence = 'A marathon is 26.2 miles.';
$sentence =~ s! # substitution \b((?:\d+)?(?:\.\d+)?)\b # find a number \s+ # followed by space (kilometer|mile)s? # "km"s or "m"s ! # sprintf "%.1f %s%s", # convert, $1 * ($2eq'mile'?1.609:.6214), # "m"s, use 1.609 ($2eq'mile'?'kilometer':'mile'), # "km"s, use .6214 ($1*($2eq'mile'?1.609:.6214))==1? # the math '' : 's' # pluralize or not !xeg; #
print $sentence, "\n";
[close] Permanent link · http://querylog.com/q/How+many+km+in+a+marathon?

Suggested HTML for linking:
Link preview: How many km in a marathon?
14 August 2005 · Ps & Qs
who buys asian mail order brides
Girls for Sale! “Buy” is the wrong word in this case. Since divorce is still the way a little over 50% of marriages go—and I think it would be 90% if everyone lived a natural lifespan—you’re really just leasing.
[close] Permanent link · http://querylog.com/q/who+buys+asian+mail+order+brides

Suggested HTML for linking:
Link preview: who buys asian mail order brides
14 August 2005 · relationships
The page found by the original query:
mail order bride—The Devil’s Dictionary X™
How to be a pimp books.
Pimps don’t read books, motherfucker, and wouldn’t even if they could! Step off.
[close] Permanent link · http://querylog.com/q/How+to+be+a+pimp+books.

Suggested HTML for linking:
Link preview: How to be a pimp books.
14 August 2005 · how-to
The page found by the original query:
pimp—The Devil’s Dictionary X™
How to get out of being served a warrant.
Suicide, once again, is fool proof in this situation. Depending on what you did to get someone trying to serve you, we might just recommend it.
[close] Permanent link · http://querylog.com/q/How+to+get+out+of+being+served+a+warrant.

Suggested HTML for linking:
Link preview: How to get out of being served a warrant.
14 August 2005 · how-to
The page found by the original query:
Words that start with P—The Devil’s Dictionary X™