XP is just a number | |
PerlMonks |
Re: Trying to write a subroutine to return if file is Text or Binaryby nevdka (Pilgrim) |
on Jun 26, 2014 at 05:13 UTC ( [id://1091298]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|