- or download this
use strict;
use warnings;
...
print OUTFILE $_,$/;
}
#close files here
- or download this
for my $slotarray (@slotarray) {
print OUTFILE "$slotarray\n";
}
- or download this
while (<DPSLOTFILE>){
next unless /\QMSL6000 Trinity:\s*(\d+)/;
print OUTFILE $1,$/;
}
- or download this
perl -nle 'print $1,$/ if /\QQMSL6000 Trinity:\s*(\d+)/' input_file > output_file;