Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Reading two text files parallelly...

by 7stud (Deacon)
on Nov 08, 2010 at 19:59 UTC ( [id://870183]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open my $F1, '<', $file1 
        or die "Cannot open file $file1 \n";
    ...
    while (my $line = <$F1>) {
     ...
    }
    
  2. or download this
    while (defined(my $f1 = <F1>) && defined(my $f2 = <F2>)) {
       ...
    }
    
  3. or download this
    while ( 
            defined(my $line1 = <$F1>) 
    ...
    {
       ...
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-03-28 18:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found