- or download this
open TEST,"@ARGV[0]";
- or download this
open(my $TEST, "<", $ARGV[0])
or die("Can't open \"$ARGV[0]\": $!\n");
- or download this
$flag = "ON"
...
$flag = "OFF"
- or download this
my $looking = 1;
...
$looking = 0;
- or download this
while (<TEST>)
- or download this
while (<>)
- or download this
if (/test/ and $flag eq "ON")
- or download this
if ($looking && /test/)
- or download this
print "start";
- or download this
print "start\n";
- or download this
say "start";
- or download this
close TEST;
- or download this
use strict;
use warnings qw( all );
...
$looking = 0;
}
}
- or download this
use strict;
use warnings qw( all );
...
last;
}
}