in reply to Re: perl -i -pe ... with eof() testing
in thread perl -i -pe ... with eof() testing
This is what I figured, too (kind of). But why does it then "work" with the eof form? This produces
--- cat before --- line1 line2 line3 line1 line2 line3 --- script output to stdout --- --- cat after --- line1 line2 line3 opt=bar line1 line2 line3 opt=bar
(I say "work" in quotes because it's not what is needed here, but what I would've expected.)
Also, perl -MO=Deparse ... doesn't highlight any difference, except the eof vs. eof() itself.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: perl -i -pe ... with eof() testing
by ikegami (Patriarch) on Feb 08, 2011 at 20:05 UTC | |
by Anonyrnous Monk (Hermit) on Feb 08, 2011 at 20:38 UTC |