- or download this
if (! @ARGV) {
use open ':raw'; # implicit binmode on each open
...
# see perlopentut
}
# ... now go do all that sysread stuff.
- or download this
my @files = (@ARGV)?@ARGV:qw(-);
NEXTFILE:
...
# don't forget that an eof here may not be a "real" eof,
# but a signal to go to the next file
}
- or download this
@/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
map{y/X_/\n /;print}map{pop@$_}@/for@/