Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: regex problem

by rnaeye (Pilgrim)
on Nov 04, 2010 at 01:05 UTC ( #869374=note: print w/replies, xml ) Need Help??


in reply to regex problem

Try this.
#!/usr/bin/perl use strict; use warnings; use 5.010; while (<DATA>){ my ($name,$num,$addr,$date,$n) = split(/:/, $_); $name ~~ s/William Kopf/Siegfield/ig; print "$_"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://869374]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2017-01-21 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (180 votes). Check out past polls.