Lets get the basics that a lot of people will mention out of the way up front:
open my $inFH, '<', $filename or die "...";
Perl should then tell you about how there is no function (& vs $) called "outfile", among other things
Also my $file = @files is probably not going to do what you want. Array in scalar context gives the count of items in the array.
In reply to Re: Need help with comparison code
by Anonymous Monk
in thread Need help with comparison code
by sowais
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |