Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Trying to write a subroutine to return if file is Text or Binary

by DrHyde (Prior)
on Jun 26, 2014 at 10:25 UTC ( [id://1091327]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -v
    This is perl, v5.8.8
    $ cat foo
    
  2. or download this
     (this is apparently Chinese for "text")
    $ perl -e 'print -T "foo"'
    1
    $ perl -e 'print -B "foo"'
    $
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-23 19:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found