in reply to hang caused by read / readline?
Why are you using readline to read a file that doesn't contain lines?
Well actually, readline can be configured to effectively become a read by setting $/ to a reference to a number. For example,
local $/ = \4096; while (<$fh>) { # $_ contains one 4k chunk ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: hang caused by read / readline?
by grepdashv (Initiate) on Sep 04, 2009 at 06:25 UTC | |
by ikegami (Patriarch) on Sep 04, 2009 at 06:34 UTC | |
by grepdashv (Initiate) on Sep 04, 2009 at 07:50 UTC | |
by ikegami (Patriarch) on Sep 04, 2009 at 18:24 UTC | |
by grepdashv (Initiate) on Sep 04, 2009 at 18:53 UTC | |
| |
by grepdashv (Initiate) on Sep 04, 2009 at 07:24 UTC |