Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: In-place edit on tabular data not working

by gothamcity (Initiate)
on Oct 18, 2010 at 18:43 UTC ( [id://866018]=note: print w/replies, xml ) Need Help??


in reply to Re: In-place edit on tabular data not working
in thread In-place edit on tabular data not working

Thanks, I got it to print out using -p, but the substitution is not being printed in the output (parsed) file.

I know that the regex is working because when i run the following it prints the substituted words.
perl -F\t -lape "$F[4] =~ s/.*y.*/yes/; print $F[4], \"\n\";" results. +txt
Not sure why the substituted words aren't being written into the file. Any thoughts? Thanks!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-24 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found