in reply to Re: code for review?
in thread code for review?
First, excellent restructuring.
Maybe it's just me – and it very well could be (I'm goofy) – but that menu is just begging for some more compaction:
my $menu = { 0 => sub { init_file(\@teams) }, 1 => sub { team_update(\@values, \@teams) }, 2 => sub { team_find(\@values) }, 3 => sub { storage_backup() }, default => sub { print "Exiting\n" }, }; ( $menu->{$reply} || $menu->{default} ) -> ();
Ah, that feels better. ;-)
Cheers,
Tom
Tom Moertel : Blog / Talks / CPAN / LectroTest / PXSL / Coffee / Movie Rating Decoder
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: code for review?
by amadain (Novice) on Nov 12, 2004 at 13:01 UTC |