Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Understanding transformation sorts (ST, GRT), the details

by merlyn (Sage)
on May 18, 2005 at 14:08 UTC ( #458215=note: print w/ replies, xml ) Need Help??


in reply to Re: Understanding transformation sorts (ST, GRT), the details
in thread Understanding transformation sorts (ST, GRT), the details

map { /(\d[.\d]+\d)/; inet_aton($1) . $_ }
Oops! That duplicates a value twice if the next line doesn't have a good match. Perhaps you meant:
map { /(\d[.\d]+\d)/ ? inet_aton($1) . $_ : () }

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.


Comment on Re^2: Understanding transformation sorts (ST, GRT), the details
Select or Download Code
Re^3: Understanding transformation sorts (ST, GRT), the details
by jdporter (Canon) on May 18, 2005 at 14:23 UTC
    I'm assuming well-formed input. If there's non-conformant data in the input, it would be better to have already detected and handled it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://458215]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2014-07-31 15:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (249 votes), past polls