Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: File Input and Output

by Anonymous Monk
on Jun 08, 2001 at 18:54 UTC ( #86920=note: print w/ replies, xml ) Need Help??


in reply to File Input and Output

is there some way to read in an input & store it character by character?


Comment on Re: File Input and Output
Re: Re: File Input and Output
by ariels (Curate) on Jul 24, 2001 at 14:56 UTC
    getc. Note well the documentation -- it's still buffered input!

    ObSampleCode:

    while ($_ = getc STDIN) { $_ = ord $_; printf "%02x %c\n", $_, 32 <= $_ && $_ < 127 ? $_ : ord '?'; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://86920]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-11-26 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (173 votes), past polls