in reply to Re: Re: Re: simple menu loop problems
in thread simple menu loop problems
See Re: How to write long programms? for more.my %choice = ( 1 => 'stuff', 2 => 'more stuff', ... ); print $choice{$input}, "\n"; # hey, let's make functions now! my %choice = ( 1 => \&stuff, 2 => \&more_stuff, ... ); &{$choice{$input}};
jeffa
'Welcome to the next level of laziness!'
|
|---|