Perl: the Markov chain saw | |
PerlMonks |
Re: Error binmode() on unopened filehandleby stevieb (Canon) |
on May 02, 2020 at 22:16 UTC ( [id://11116368]=note: print w/replies, xml ) | Need Help?? |
$binary is not a file handle. It's a normal scalar variable that you've stuffed the entire contents of the file into. Side note... you're best to use the three argument form of open(), and use a lexical file handle as opposed to a bareword global one:
In Section
Seekers of Perl Wisdom
|
|