Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by merlyn (Sage)
on May 18, 2005 at 14:08 UTC ( [id://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.

Replies are listed 'Best First'.
Re^3: Understanding transformation sorts (ST, GRT), the details
by jdporter (Paladin) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://458215]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-03-29 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found