Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Reading non-blockingly / "awk has to be better for something."

by Grimy (Pilgrim)
on Jul 28, 2012 at 08:37 UTC ( #984159=note: print w/ replies, xml ) Need Help??


in reply to Reading non-blockingly / "awk has to be better for something."

my $line = ''; my $chr; $line .= $chr until (($chr = getc($fh)) =~ /[\r\n]/);
Not tested, but it might work, or at least give you an idea.


Comment on Re: Reading non-blockingly / "awk has to be better for something."
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2015-03-02 13:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (41 votes), past polls