Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
$line = <FH> returns incomplete lines
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="robic, post: 4787174"] The "while( wait_for_level2_io )" condition is the "<>" mode default. Perl submits a default Level 2 io read request, then waits for the io device to deliver a complete entry, which could include more than one "\n" depending on if the callers process was slowed down. Perl would return on the last EOL char it gets (there could be several) OR the EOF condition. Thats why /\n+/ is relavent. Printing a string with several \n I guess you wouldn't be able to tell. Might have to run an assembly program that pumps multiple \n at high priority to tell for sure. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
$line = <FH> returns incomplete lines
Top