Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Write a File in Binary?by Adrade (Pilgrim) |
on Jul 03, 2007 at 17:27 UTC ( [id://624738]=note: print w/replies, xml ) | Need Help?? |
Hi editi, First, you're not writing to the file... reformat the third line to read print FILE pack("b*","a","b","c") or die $!; Additionally, you'll want, after you open FILE, to write binmode(FILE); - I dont know if this is necessary on all platforms, but it certainly can't hurt. Best of luck, -Adam --
In Section
Seekers of Perl Wisdom
|
|