Help for this page

Select Code to Download


  1. or download this
    if (! @ARGV) {
      use open ':raw'; # implicit binmode on each open
    ...
                               # see perlopentut
    }
    # ... now go do all that sysread stuff.
    
  2. 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
    }
    
  3. or download this
    @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/;
    map{y/X_/\n /;print}map{pop@$_}@/for@/