Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: reading lines from 2 different files

by duff (Vicar)
on Oct 08, 2007 at 15:41 UTC ( #643487=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # assuming you've got the files open in handles $fh1 and $fh2
    while (1) {
    ...
        last unless defined($line_from_file_2 = <$fh2>);
        # ...
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2014-04-20 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls