- or download this
use strict;
use warnings;
- or download this
open(file1,"file1.txt") || die ("cannot open file");
- 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);
$data1 = @LINEREC[0];
- or download this
while (<$file1>)
{
chomp;
my $data1 = (split /,/)[0];
# ...
- or download this
open(file2,"file2.txt") || die ("cannot open file");
- or download this
#!/usr/bin/perl -l
...
}
__END__