in reply to Passing a variable to a hash

You should move the block starting with my %vlan after the lines that populate $vl1, $vl2... from <STDIN>. Then your code should be fine (I didn't test it however).

HTH, Rata

Replies are listed 'Best First'.
Re^2: Passing a variable to a hash
by rspishock (Monk) on Jan 03, 2012 at 14:09 UTC

    Thanks for the help, that worked. I knew it had to be something simple.