According to "man perlrun", the "-0777" option sets $/ to 0777 and
slurps files whole. This works fine.

However, when I did 'local $/="0777"' in a script, it usually worked,
but sometimes failed and only slurped part of the file.

Changing this to "local $/ = undef" worked fine.

Why?

-- 
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to