in reply to Re: Split on 2nd Occurencein thread Split on 2nd Occurence
my $prefix = join '.', (split /\./, $ipaddr)[0,1];
-- Chip Salzenberg, Free-Floating Agent of Chaos