The stupid question is the question not asked | |
PerlMonks |
Re: To read Char-by-Char from a fileby rob_au (Abbot) |
on May 12, 2005 at 11:10 UTC ( [id://456344]=note: print w/replies, xml ) | Need Help?? |
If you have an open file handle, see perlfunc:getc, otherwise cog's suggestion is quite elegant (assuming your character-set is not "wide", requiring more than one byte per character).
perl -le "print unpack'N', pack'B32', '00000000000000000000001000000000'"
In Section
Seekers of Perl Wisdom
|
|