Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^4: sysread and null charactersby ggg (Scribe) |
on Mar 24, 2005 at 17:18 UTC ( [id://442125]=note: print w/replies, xml ) | Need Help?? |
Congratulations on Sainthood, Tanktalus!
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 ))
ggg
In Section
Seekers of Perl Wisdom
|
|