push (@switches, my $portcount); #### push (@switches, undef);