XP is just a number | |
PerlMonks |
Re^2: Getopt - Validate arguments before processing -- BEGINby Corion (Patriarch) |
on Jan 31, 2022 at 08:59 UTC ( [id://11140987]=note: print w/replies, xml ) | Need Help?? |
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).
In Section
Seekers of Perl Wisdom
|
|