Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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?

Replies are listed 'Best First'.
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?
[shmem]: you can break up the chain MP3::Tag->new($_)- >interpolate("\%S ") and test whether MP3::Tag->new($_) is true
[Lady_Aleena]: shmem, no to deletion.
[shmem]: can't help you there since that song is not on my bench
[Lady_Aleena]: shmem, I need to look at MP3::Tag to see how to get the date from one song.
shmem sticks himself into the envelope. gn.(1<<3) all

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2017-04-23 22:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.