Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

romandas's scratchpad

by romandas (Pilgrim)
on Jun 02, 2004 at 17:23 UTC ( #359582=scratchpad: print w/replies, xml ) Need Help??

if($data !~ /^[\ -\~\007\012\015\035\036\037]*$/) { $data =~ tr/[\ -\~\007\012\015\035\036\037]/ /cs; }
I expect this to change everything except those characters in the regex into spaces, but $data contains letters, numbers, and a few other characters after this block of code. I don't understand why.
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[mz2255]: Tried again, denied. Maybe my code is just so bad the site refuses to post it.
[marto]: no, there's a bug, sometimes...
[mz2255]: ok, well thanks for looking into it. I'll try again later.

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2017-10-19 15:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (255 votes). Check out past polls.

    Notices?