Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: Can't call sub within same package in BEGIN blockby Anonymous Monk |
on Aug 14, 2014 at 08:07 UTC ( [id://1097393]=note: print w/replies, xml ) | Need Help?? |
Thanks, I am using the BEGIN block ... instead of creating another module You don't need a BEGIN {} block to import/export or touch %ENV (icky like a code smell potentially almost), just simply make another module :) do stuff in import, it takes args
Does the light bulb turn on? :) What I still don't understand is why use subs lost this race. Say: Same reason, it doesn't define the subroutine, its a forward declaration, its exactly like this literal code
rm -rf goners
In Section
Seekers of Perl Wisdom
|
|