Help for this page

Select Code to Download


  1. or download this
    while (<INPUt>) 
    { 
      push @array, $_;
    }
    
  2. or download this
    while (<INPUT>)
    {
       if (/$pattern/) # matches work by default on $_
    ...
           do something with $_;
       }
    }
    
  3. or download this
    $inner = "([0-5][0-9]|[0-9][1-8])";
    $outer = "$inner.$inner.$inner/[0-6]"; # Can also be written $outer = 
    +join('.', $inner x 3) . "[0-6]"