Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Reading concurrently two files with different number of lines

by frogsausage (Sexton)
on Apr 10, 2013 at 15:55 UTC ( [id://1028005]=note: print w/replies, xml ) Need Help??


in reply to Re: Reading concurrently two files with different number of lines
in thread Reading concurrently two files with different number of lines

Thanks for the answer.

After looking at the perldoc, eof(FH) is only returning if EOF is reached. In that case, it seems that using defined() will do as good as either $lineA or $lineB will be set to undef (and therefore be tested in the loop).

Is that correct?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-19 10:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found