Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2016-08-29 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (408 votes). Check out past polls.