Help for this page

Select Code to Download


  1. or download this
    {
      my @new;
    ...
      push @new, $_ =~ m/^(bla)/;
      print(@new, "\n");  # prints bla
    }
    
  2. or download this
    while (<IN>) {
       push @new, m/^(\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+)/;
    ...
       s/^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/$new[$i++]/;
       print OUT $_;
    }