That way is fine also. I tend to shy away from &'s in general out of personal preference.
I just like...
'h|help' => sub { help() }, ... sub help { ... }
better than...
'h|help' => \&help, ... my $help = sub { ... }
--
"A long habit of not thinking a thing wrong, gives it a superficial appearance of being right." -- Thomas Paine
naChoZ
In reply to Re^3: Getopt::Long good style?
by naChoZ
in thread Getopt::Long good style?
by Skeeve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |