Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: To read Char-by-Char from a file

by rob_au (Abbot)
on May 12, 2005 at 11:10 UTC ( #456344=note: print w/replies, xml ) Need Help??


in reply to To read Char-by-Char from a file

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'"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://456344]
help
Chatterbox?
[erix]: potshots at potus. It was kinda encouring when they started shooting a republican senators ;)
[LanX]: I'm not calling for shooting Trump with a golf ball ;-)

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2017-08-18 12:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (301 votes). Check out past polls.

    Notices?