Too much typing there, use hash slice man (after populating "@systems") ...my @systems = qw( this_system_should_be_first system1 ... ); my %systems = ( this_system_should_be_first => 'hostname_to_first_system', system1 => 'hostname_to_system1', ... );
my %systems; @{ @systems } = qw( hostname_to_first_system hostname_to_system1 ... ) ;
In reply to Re^4: how to manage a large console menu
by parv
in thread how to manage a large console menu
by paulehr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |