in reply to Re^3: how to manage a large console menu
in thread how to manage a large console menu
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 ... ) ;
|
|---|