There's more than one way to do things | |
PerlMonks |
Re^2: Assignment and use statement in the same BEGIN blockby perlancar (Hermit) |
on Jan 31, 2019 at 12:22 UTC ( [id://1229194]=note: print w/replies, xml ) | Need Help?? |
Thanks choroba, my friend Discipulus, and tobyink for all the useful explanation. Toby's clicks the most to me. And this snippet makes things very clear to me: BEGIN { say 1; BEGIN { say 2 } } printing 2 before 1. In other words, you ain't finish BEGIN'ing until you end (close) it. Sigh. And the specialness of the use statement again standing in my way.
In Section
Seekers of Perl Wisdom
|
|