in reply to Re^4: File::Temp survival and scope created by "do"
in thread File::Temp survival and scope created by "do"
The thing is, do always has a return value, if you put ; 1 after the assignment that value is just always 1. Also, since the defect also disappears when you put 1; in front of the assignment, that's why I concluded that it was not about what do returns but rather how many statements are included.
I also looked at the output of B::Concise, but immediatly concluded that I didn't understand much about it, so I didn't want to draw conclusions on something I had so little grasp on :P
As for the bug, I guess you're right, I said that the bug shouldn't happen, because there's no need for a lexical in a single statement block, but you don't have to look very far to find one occurence of the issue ... since we're discussing it :P
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: File::Temp survival and scope created by "do"
by ikegami (Patriarch) on Dec 11, 2018 at 12:46 UTC | |
|
Re^6: File::Temp survival and scope created by "do"
by haukex (Archbishop) on Dec 11, 2018 at 11:17 UTC | |
|
Re^6: File::Temp survival and scope created by "do"
by xiaoyafeng (Deacon) on Dec 11, 2018 at 06:32 UTC |