Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: searching for strings

by shoness (Friar)
on Aug 07, 2007 at 09:06 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://630980]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-03-19 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found