Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: searching for strings

by shoness (Friar)
on Aug 07, 2007 at 09:06 UTC ( #630980=note: print w/replies, xml ) Need Help??


in reply to Re^2: searching for strings
in thread searching for strings

Sorry! How strange of Perl to be asymmetric! Why is "--" not as magical as "++"? This will work instead...
$char_up =~ tr/A-Z0-9/B-ZZ1-99/; $char_down =~ tr/A-Z0-9/AA-Y00-8/;

Replies are listed 'Best First'.
Re^4: searching for strings
by oha (Friar) on Aug 07, 2007 at 11:10 UTC
    cauz if so it wouldn't be symmetric :)

    suppose you have "A00", if you -- you'll get "99" and then if you ++ you'll get "100"

    Oha

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2020-10-29 11:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (270 votes). Check out past polls.

    Notices?