Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Distinguishing text from binary data

by nothingmuch (Priest)
on Oct 06, 2004 at 00:21 UTC ( #396828=note: print w/replies, xml ) Need Help??


in reply to Re^2: Distinguishing text from binary data
in thread Distinguishing text from binary data

Those tests work on filehandles too, so if you have a socket, that should work.

perldoc -f -X says it reads the current buffer for FHs, and the first block for files.

-nuffin
zz zZ Z Z #!perl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://396828]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2017-02-26 01:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (369 votes). Check out past polls.