- or download this
#!/usr/bin/perl -w
use strict;
...
my %test = ( 1 => qr/Foo::Bar(?!\s*\()/,
2 => qr/Foo::Bar(?!\s+\()/
);
- or download this
foreach my $teststring ( @strings )
...
}
}
}
- or download this
---Foo::Bar()---
test 1 does not match
...
--- Foo::Bar ()---
test 1 does not match
test 2 does not match