Syntactic Confectionery Delight | |
PerlMonks |
Re: Binary File Handles and Scalarsby CombatSquirrel (Hermit) |
on Dec 18, 2003 at 20:55 UTC ( [id://315654]=note: print w/replies, xml ) | Need Help?? |
If you intended to slurp the whole file by $file = <INF>;, I think you are mistaken. At least this is what a short test on my computer gave me. binmode appearently does not set $/ (and actually I never expected it to). Try $file = do { local $/; <INF> }; instead. Maybe it works, but there might be other bugs as well. Good luck on your hunt!
Hope this helped. CombatSquirrel. Entropy is the tendency of everything going to hell.
In Section
Seekers of Perl Wisdom
|
|