Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by nevdka (Pilgrim)
on Jun 26, 2014 at 05:13 UTC ( [id://1091298]=note: print w/replies, xml ) Need Help??


in reply to Trying to write a subroutine to return if file is Text or Binary

Hi csorrentini, welcome to the monastery.

To me, it sounds like you have made a text file, and the text is 1's and 0's. Is this the case? If so, then it's not really a binary file, it's still a text file. I'm not sure how the binary flag is set (maybe a wiser monk could help...) but you could try pointing your sub at a JPG or video file.

Also, you might want to read How do I post a question effectively?. Putting code in <code> tags helps readibility a lot.

  • Comment on Re: Trying to write a subroutine to return if file is Text or Binary
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found