Help for this page

Select Code to Download


  1. or download this
    if ($file =~ /\.txt\z/) {
       print("Match\n");
    } else {
       print("No match\n");
    }
    
  2. or download this
    my $file_pattern = '.*';
    
    ...
    } else {
       print("No match\n");
    }