Help for this page

Select Code to Download


  1. or download this
    > my @x = <FH>;
    > @x = @x[($#x-100>0?$#x-100:0)..$#x];
    
  2. or download this
    open LOG,"<","/some/log" or die $!;
    seek LOG,-50000,2;  # go to 50K from the end (assuming your log-lines 
    +have 500 or less characters)
    ...
    close LOG;
    
    print @lines;
    
  3. or download this
    -- 
    Joost       downtime n. The period during which a system
                is error-free and immune from user input.