Help for this page

Select Code to Download


  1. or download this
    # added braces and changed variable name
    for my $filename (</home/www/*/logs/weekly>) {
      substr($filename,-7)=" ";
      print $filename;
    }
    
  2. or download this
    while (<STDIN>) { # this reads from STDIN
       ...
    }