in reply to Re: Command line tool coding style?
in thread Command line tool coding style?
Look a bit harder and you'll see method calls in disguise.. With this new approach, all I have to do is write sub _more {} and the script will automatically understand the "more" option - and it works with strict too. (Plus can $execute $_action looks much prettier than defined &$_action IMHO :-)){ do_this(\%options, $table), last if $action eq 'this'; do_that(\%options, $table), last if $action eq 'that'; # ... die "Usage here\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Command line tool coding style?
by perrin (Chancellor) on Jan 16, 2002 at 07:43 UTC | |
by Aristotle (Chancellor) on Jan 16, 2002 at 17:40 UTC | |
by perrin (Chancellor) on Jan 16, 2002 at 23:10 UTC | |
by Aristotle (Chancellor) on Jan 17, 2002 at 02:40 UTC |