Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Scurbbing a string

by FunkyMonk (Chancellor)
on Aug 24, 2007 at 21:05 UTC ( [id://634965]=note: print w/replies, xml ) Need Help??


in reply to Scrubbing a string

There's always the "evil" string eval:

my ( $s1, $s2 ) = ( 'pure', 'pppp!u-r-*e' ); my $re = eval "qr/[^$s1]/"; $s2 =~ s/$re//g; print $s2; # ppppure

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-04-25 15:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found