Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: regular expression ?!

by ccn (Vicar)
on May 05, 2009 at 12:51 UTC ( #761921=note: print w/replies, xml ) Need Help??


in reply to regular expression ?!

perl -ple 's/\bBM/XXXXX_BM/g if $. == 1' file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://761921]
help
Chatterbox?
[abner]: I am seeking suggestion of how to substitute "Yes" or "No" for "1" or "0" when displaying data from mysql table.
[abner]: I was thinking something like: If $data1 == '1' {$answer = "Yes"}

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2017-01-25 02:09 GMT
Voting Booth?
Do you watch meteor showers?




Results (213 votes). Check out past polls.