in reply to Re^5: Finding file level lexical variables
in thread Finding file level lexical variables
Then, in the script, after my original code (where you claim that the variables will be destroyed before my original code printed their values), I can add this, and the correct values of the variables are output:sub get_str { return $str; } sub get_h { return $h; } sub get_l { return $l; }
print(Dumper(TestModule::get_str())); print(Dumper(TestModule::get_h())); print(Dumper(TestModule::get_l()));
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^7: Finding file level lexical variables
by LanX (Saint) on May 26, 2016 at 13:16 UTC | |
by johndeighan (Novice) on May 26, 2016 at 14:06 UTC | |
by LanX (Saint) on May 26, 2016 at 14:13 UTC | |
by johndeighan (Novice) on May 26, 2016 at 15:02 UTC | |
by LanX (Saint) on May 26, 2016 at 15:23 UTC | |
|