Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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
Replies are listed 'Best First'.
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: (8)
As of 2015-07-08 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls