fork download
  1. #!/usr/bin/perl
  2. my $string1 = "foobar";
  3. my $string2 = "foo bash";
  4. print "String1 " . $string1 == /(?!bar)/g . "\n";
  5. print "String2 " . $string2 == /(?!bar)/g . "\n";
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
1