Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Scurbbing a string

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

Help for this page

Select Code to Download


  1. or download this
    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 drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2021-04-15 10:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?