in reply to how to manage a large console menu
It would allow you to make changes to your menu choices very easily.my @choices = ( 'system1', 'system2', 'system3', # ... ); #displays the menu sub menu { print "Please pick which system you wish to FTP to:\n"; for (my $i = 0; $i < @choices; $i++) { printf "%3d) %s\n", $i+1, $choices[$i]; } chomp(my $option = <>); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to manage a large console menu
by jhourcle (Prior) on May 22, 2006 at 13:45 UTC | |
by liverpole (Monsignor) on May 22, 2006 at 14:06 UTC | |
by BUU (Prior) on May 22, 2006 at 19:44 UTC | |
by parv (Parson) on May 22, 2006 at 20:05 UTC |