fork(8) download
  1. my $file = "test~";
  2. my $regex1 = '^.+\Q~\E$';
  3. my $regex2 = '^.+\\Q~\\E$';
  4. print int($file =~ m/$regex1/)."\n";
  5. print int($file =~ m/$regex2/)."\n";
  6. print int($file =~ m/^.+\Q~\E$/)."\n";
Success #stdin #stdout 0s 4552KB
stdin
Standard input is empty
stdout
0
0
1