in reply to IP address generation

What is "and so on"? IIUC, how 'bout
map { my $i=$_; map "192.168.$i.$_", 1..254 } 0..255;
?