The stupid question is the question not asked | |
PerlMonks |
Re^6: File::Temp survival and scope created by "do"by Eily (Monsignor) |
on Dec 11, 2018 at 00:09 UTC ( [id://1227073]=note: print w/replies, xml ) | Need Help?? |
It's harder to tell in haukex's version though (without the -exec option) because the shorter version as an extra: <@> scope vK ->- so it's kind of hard to say that the scope is obviously missing :P. I'm guessing that this is the local scope, that makes local work as intended, but the scope that is *enter*ed and *leave*d (yes I very English, thank you) in the longer version is the lifetime of the scalar.
In Section
Seekers of Perl Wisdom
|
|