Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Massage the driving directions (in USA)

by liverpole (Monsignor)
on Jun 18, 2006 at 19:03 UTC ( [id://556137]=note: print w/replies, xml ) Need Help??


in reply to Massage the driving directions (in USA)

That's an interesting use for Perl.

I tried it, and only have two suggestions -- you may want to reconsider the way the program changes "drive" to "DR", and "s" to "SOUTH", since it adversely affects things like:

Drive for 12 miles, and turn left on Rodeo Drive. (Becomes "DR for 12 MILES, & turn LEFT on RODEO DR") Take a right just past the Drive-Through Wendy's. (Becomes "take a RIGHT JUST PAST DR-THROUGH WENDY'SOUTH.")

And there may be other "gotchas" waiting to be discovered.

But it's neat idea, and one I'm sure you can develop further.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://556137]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-26 07:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found