in reply to Re^3: sysread and null characters
in thread sysread and null characters
Your explanation of sysread clarifies some other puzzeling behaviors I was seeing but didn't mention. Thanks!
I've bookmarked your links to regex info - your explaination gave me a cross between Do'h and deja vu.
One more thing, if you don't mind. The sysread info on perldoc.perl.org says Use sysread() and check for a return value for 0 to decide whether you're done. I'd like to use that feature to end the while loop rather than incrementing a counter, but is that return value zero? If so, how would I tell the difference from a zero in the data?
Or is that talking about some test value the function itself returns? ($EndTest = systead( FH, $a, $b ))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: sysread and null characters
by Tanktalus (Canon) on Mar 24, 2005 at 18:10 UTC | |
by ggg (Scribe) on Mar 24, 2005 at 18:50 UTC |