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, RataIn reply to Re: Passing a variable to a hash
by Ratazong
in thread Passing a variable to a hash
by rspishock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |