Help for this page

Select Code to Download


  1. or download this
    open(ERRLOG,"myerror.txt");
    @file = <ERRLOG>;
    
  2. or download this
    foreach $line (0..$#file)
    {
    ...
      if($date < (time-2592000)) # 2592000 secs = 30 days
      { splice @file,$line,1; }
    }