Help for this page

Select Code to Download


  1. or download this
    @vals = (".","..",".\n","..\n","foo","foo\n","bar","bar\n");
    
    foreach (grep !/^[.]{1,2}$/,@vals) {
      print "$_\n";
    }
    
  2. or download this
    foo
    foo
    ...
    bar
    bar