my $match = sub { $_[0] =~ /.../ }; my $negated = sub { not $match->(@_) };
Now that's some Higher Order Perl I can live with!
-sam
In reply to Re: Negation/Complement of a Regex
by samtregar
in thread Negation/Complement of a Regex
by geekondemand
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |