Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Scurbbing a string

by FunkyMonk (Chancellor)
on Aug 24, 2007 at 21:05 UTC ( #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
Node Status?
node history
Node Type: note [id://634965]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2021-04-19 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?