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

See perlrun on -n. If you use the -n switch, you need to do the printing yourself. Did you maybe want the -p switch?

Replies are listed 'Best First'.
Re^2: In-place edit on tabular data not working
by gothamcity (Initiate) on Oct 18, 2010 at 18:43 UTC
    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!