Help for this page

Select Code to Download


  1. or download this
    while (<INFILE>) {
    {
    ...
      @array = split (/\s+/, $line); 
      . .  .
    }
    
  2. or download this
    my @array;
    while (<INFILE>) {
    ...
      push @array, split(/\s+/, $line); 
      . . .
    }
    
  3. or download this
    if ($line =~ /^Happy\s+30/) {
     print $line . "\n";
    }
    
  4. or download this
    $"=q;grep;;$,=q"grep";for(`find . -name ".saves*~"`){s;$/;;;/(.*-(\d+)
    +-.*)$/;
    
    $_=["ps -e -o pid | "," $2 | "," -v "," "];`@$_`?{print"+ $1"}:{print"
    +- $1"}&&`rm $1`;
    print$\;}