Help for this page

Select Code to Download


  1. or download this
    @words = ("filename" , "file.txt");
    $line = "my file is file.txt";
    
  2. or download this
    $file = (grep{$line =~ /$_/i} @words)[0];
    
    ...
      next if($line !~ /$_/i);
      $file = $_;
    }