Problems? Is your data what you think it is? | |
PerlMonks |
Re: Negate link search in Mechanizeby mwp (Hermit) |
on Nov 02, 2011 at 04:57 UTC ( [id://935292]=note: print w/replies, xml ) | Need Help?? |
You might be over-thinking it. my @links = grep $_->url !~ /foo/, $mech->links;Update: I might be under-thinking it. :-) Update 2: ology points out Negation/Complement of a Regex, which leads into a twisty labyrinth of prior art, including Negating Regexes: Tips, Tools, And Tricks Of The Trade.
mwp
In Section
Seekers of Perl Wisdom
|
|