in reply to Re: Getopt - Validate arguments before processing -- BEGIN
in thread Getopt - Validate arguments before processing
The code in the BEGIN block runs before Perl has even seen your declaration of the subroutine sub first { .... To work around that, you need to move the BEGIN block below the subroutine declaration(s).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Getopt - Validate arguments before processing -- BEGIN
by Discipulus (Canon) on Jan 31, 2022 at 09:03 UTC | |
by ikegami (Patriarch) on Jan 31, 2022 at 14:44 UTC |