Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Thanks jwkrahn, I really appreciate the corrections! I have included them in the script and read the section on error variables in perlvar. Also, my first version used Moose (influenced by the book "Modern Perl"). After looking at the script, and comparing it with the bash scripts, it took more time and resources. I guess that Moose is for larger and more complex projects, so I have rewritten in what I assume is "procedural programming". It has been trivial to have Moose out, transforming the package into a subroutine. One thing is puzzeling me is the regex. In a file in this format:
Applying this regex: qr/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/mGives me:
And this regex: qr/^((\d{1,3}\.){3}\d{1,3})/mGimes me:
I would expect the same result. In reply to Re^4: Create a ipset for blocking networks based on internet sources
by mimosinnet
|
|