Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 "$_"; }


Comment on Re: regex problem
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2014-12-20 19:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (97 votes), past polls