Perl: the Markov chain saw | |
PerlMonks |
Re^3: Speed up hash initialization loopby bulk88 (Priest) |
on Jan 30, 2013 at 21:25 UTC ( [id://1016156]=note: print w/replies, xml ) | Need Help?? |
Correct. $profEvntVar may be magical and return a different hash every time its read. In that hash, slice {$customProf} might be magical and different every time. If you write the var X many times in source, it will be called/read X many times in source. There is no caching.
In Section
Seekers of Perl Wisdom
|
|