Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Reading two text files parallelly...

by Hugmeir (Sexton)
on Nov 08, 2010 at 19:56 UTC ( #870182=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open my $fh1, "<", $file1 or die "Cannot open file $file1: $!";
    open my $fh1, "<", $file2 or die "Cannot open file $file2: $!";
    
  2. or download this
    use strict;
    use warnings;
    ...
        chomp($test2 //= '');
        say "$test1, $test2";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (14)
As of 2015-07-29 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (267 votes), past polls