in reply to Re^2: Open file without changing modified date/time
in thread Open file without changing modified date/time

You forgot to notice this line in Ted's code:
$/ = undef;
Look up $/ in perldoc perlvar -- in case you don't know what "slurp mode" is for file reads, that section of the docs will explain it. It's not a bug.

Replies are listed 'Best First'.
Re^4: Open file without changing modified date/time
by richz (Beadle) on Dec 10, 2004 at 04:45 UTC
    Oh, very nifty. No, I did not know about slurp mode and that's why I said I *think* there is a bug. I learn new things everyday, thanks guys!