No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I don't exactly understand the question, but looking at your grep example, you probably want map instead. grep should only be used to match entities and pass them through unmodified, map can be used to process entities and change them into something else:
this pushes $1 onto @segments for each match, and the empty list, IOW: nothing, for no match. Note that as far as I can see, this is NOT what you want in your case. Note also that hashes are unordered, so asking about a sequential order of keys is nonsense: they're always unordered unless you order them explicitly using (for instance) my @ordered = sort keys %hash).
In reply to Re: Matching Sequential IP Addresses
by Joost
|
|