Help for this page

Select Code to Download


  1. or download this
    my $g=lastn("/usr/dict/words", 400);
    print while(<$g>);
    
  2. or download this
    sub lastn {
            my($file, $lines)=@_;
    ...
            seek($fh, sysseek($fh, 0, 1), 0) || warn;
            $fh;
    }