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

Re^2: s/// for \dOO for typos

by wallisds (Beadle)
on Oct 28, 2010 at 18:34 UTC ( #868112=note: print w/replies, xml ) Need Help??


in reply to Re: s/// for \dOO for typos
in thread s/// for \dOO for typos [SOLVED]

Try this:

#!/usr/bin/perl use strict; my $new = "100o798 boonanas woot!"; print "Original line: $new\n"; $new =~s/([0-9]+)o/$1\Q0\E/gi; print "With ~s: $new\n"; exit;


Thanks,
Dawn

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2023-02-06 06:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (33 votes). Check out past polls.

    Notices?