Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^2: parallel reading

by blazar (Canon)
on May 09, 2006 at 14:42 UTC ( #548221=note: print w/ replies, xml ) Need Help??

in reply to Re: parallel reading
in thread parallel reading

Nice approach. And my be merged with mine, e.g.:

#!/usr/bin/perl -l use strict; use warnings; my @fh=map { open my $fh, '<', $_ or die "Can't open `$_': $!\n"; $fh } @ARGV; no warnings 'uninitialized'; print while $_=join '', map { chomp(my $line=<$_>); $line } @fh, __END__


  • you should s/undefined/uninitialized/;
  • it may not be fully reliable if empty lines are to be expected in the files.

Update: the second point was a thinko as Zaxo pointed out.

Comment on Re^2: parallel reading
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2015-12-01 08:50 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (797 votes), past polls