- or download this
my $lastline = do {
open my $pipe, '-|', tail => -1, $file
...
<$pipe>;
};
print $lastline;
- or download this
while( 1 ) {
my $file = shift || last;
# ...
}
- or download this
while( @ARGV ) {
my $file = shift;
# ...
}
- or download this
for my $file ( @ARGV ) {
# ...
}
- or download this
for my $file ( @ARGV ) {
my $lastline = do {
...
};
print $lastline;
}