in reply to Adding an Entire Class B IP Range to an Array

for my $i (0..255) { for my $j (1..254) { printf("192.168.%d.%d\n", $i, $j); push @hosts, sprintf("192.168.%d.%d", $i, $j); } }
-- gam3
A picture is worth a thousand words, but takes 200K.