Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
BEGIN { if (@ARGV[0] != 1) { &help; } } help { print "Show help message and exit\n"; exit; } use SomeModule;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trouble finding a subroutine
by Jenda (Abbot) on Jan 06, 2005 at 17:40 UTC | |
|
Re: Trouble finding a subroutine
by Zaxo (Archbishop) on Jan 06, 2005 at 17:42 UTC | |
|
Re: Trouble finding a subroutine
by Limbic~Region (Chancellor) on Jan 06, 2005 at 17:42 UTC | |
|
Re: Trouble finding a subroutine
by holli (Abbot) on Jan 06, 2005 at 17:35 UTC | |
|
Re: Trouble finding a subroutine
by fauria (Deacon) on Jan 06, 2005 at 18:34 UTC | |
|
Re: Trouble finding a subroutine
by dragonchild (Archbishop) on Jan 06, 2005 at 19:02 UTC |