in reply to joining files
If you're happy to use modules
HTH
Here's to hoping that more of Functional makes it into perl6.use IO::File; use Functional qw( zip ); my $f1 = IO::File->new( shift ) or die("ack - $!"); my $f2 = IO::File->new( shift ) or die("ack - $!"); my $join = zip( [map { chomp; "$_ " } <$f1>], [<$f2>] );;
HTH
_________
broquaint
update: added chomp() and extra space per dada's request
In Section
Seekers of Perl Wisdom