On 26/05/2013 14:40, shawn wilson wrote:
Thank y'all, I got to where I want to be: https://github.com/ag4ve/geocidr
> ...
> or grep { ! m%[0-9\.\/]+% } @{$opts->{ip}}
> or scalar(@{$opts->{ip}}) < 1
The '+' in the regexp is superfluous as-is.
(your regexp isn't anchored)
You probably meant it more like:
...
or !@{$opts->{ip}}
or grep m{[^0-9./]}, @{$opts->{ip}}
--
Ruud
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
