I'm trying to create an array which includes all ip's within a class B range from 1-254 for both the 3rd and 4th octet. I can get the third octet included, but can't figure out how to include the fourth.
my @hosts = map q|192.168.| . $_, 1..254;
for (@hosts){
print "$_\n";
}
~