Here is an example
You would call it like this 'myprog.pl outfile file1 file2 file3'#!/usr/local/bin/perl my $outfile = shift; # You have to use shift here for magic to work open (OUT, ">$outfile") || die $!; while (<>){ # This is magic, it opens all the files that are on @ARGV print OUT $_; } close (OUT);
In reply to Re: files
by SarahM
in thread Read and Combine Range of Two Files (was files)
by A_CAR11
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |