in reply to Re: Split on 2nd Occurence
in thread Split on 2nd Occurence

That seems like a lot of punctuation:
my ($prefix) = join('.',@{[split(/\./,$ipaddr)]}[0,1]);
Can also be written like this:
my $prefix = join '.', (split /\./, $ipaddr)[0,1];
Update: Oops.... much like the other "dup" in this thread this was wholly unintentional, and not blatent copying.

-Blake