Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Binary File Handles and Scalars

by CombatSquirrel (Hermit)
on Dec 18, 2003 at 20:55 UTC ( [id://315654]=note: print w/replies, xml ) Need Help??


in reply to Binary File Handles and Scalars

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://315654]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-24 21:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found