in reply to Split on 2nd Occurence

If you are only interested in printing the prefix, this works:
$ipaddr = '192.168.8.205'; print ($ipaddr =~ /^(\d+\.\d+)/);
--Dave