in reply to Re^5: "my" declaration problem
in thread "my" declaration problem
Not really.
Not using my would make the first $atexit trigger immediately instead of when leaving the sub frobnicate.
Putting things in their own blocks would make it impossible to use $name or whatever other effect of creating the file, and also would trigger the $atexit block when leaving that block instead of when leaving that function.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: "my" declaration problem
by LanX (Saint) on Apr 25, 2017 at 20:53 UTC | |
by Corion (Patriarch) on Apr 25, 2017 at 20:57 UTC | |
by LanX (Saint) on Apr 25, 2017 at 21:05 UTC | |
by shmem (Chancellor) on Apr 25, 2017 at 21:50 UTC | |
by Corion (Patriarch) on Apr 25, 2017 at 21:20 UTC | |
by LanX (Saint) on Apr 25, 2017 at 21:34 UTC | |
| |
by Anonymous Monk on Apr 26, 2017 at 14:34 UTC |