- or download this
open(file1,"file1.txt");
- or download this
open my $file1, '<', "file1.txt"
or die "Can't open `file1.txt': $!\n";
- or download this
while (<file1>)
{
chop();
- or download this
$REC = $_;
@LINEREC = split(/\,/,$REC);
- or download this
use strict;
use warnings;
- or download this
my $REC = $_;
my @LINEREC = split(/\,/,$REC);
- or download this
open(file2,"file2.txt");
while (<file1>)
- or download this
if ( $LINEREC[0] eq $LINEREC[1])
{
print $LINEREC[0];
{
- or download this
#!/usr/bin/perl
...
}
__END__