[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] ip address golf-eek!



In article <fjzF5gzkgaIR092yn@efn.org>, I wrote:
> Here's a splightly different approach:

s/spl/sl/

> 
> $_ eq join'.',map$_>255^$_,split/\./,$_,4
> 
> but it's not -w clean.
> (Neither is the suggestion above, unless & is changed to &&).

It also rejects leading zeros (e.g. "012.3.4.5") which may or may not
be a good idea.

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe