in reply to how do i put an equasion in a variable, one which is evaluated at the time of use?
i think this should work. make $array2 hold a subroutine closure. this way, every time you call $array2, the closure will be re-evaluated.
|
---|
In Section
Seekers of Perl Wisdom