in reply to Help with multidimensional arrays and IO::Socket

You want:
foreach $pt (@{$remote_port [$i]}) {
You should also increment $i in your loop.

However, I would note store the data over two arrays. I'd keep a hash, like this:

my %data = ( 'arbornet.org' => [21, 23, 80], 'slashdot.org' => [80], 'apple.com' => [80], 'yahoo.com' => [80], );
and iterate with each over the hash.

Abigail