in reply to Re: Split on 2nd Occurence
in thread Split on 2nd Occurence
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.my $prefix = join '.', (split /\./, $ipaddr)[0,1];
-Blake
|
|---|