|more useful options|
Re^2: Dynamic Hash valueby Bheema_Tyco (Novice)
|on Apr 21, 2010 at 08:45 UTC ( #835995=note: print w/replies, xml )||Need Help??|
Actually Like SAS1, SAS2, SAS3, ...etc are there. Based on those value i am calculating the value say $some_value.
which($some_value) may either $ini-$last or $last-$ini
So for that i am building hash %result with SAS1, SAS2., SAS.. as key and either $ini-$last or $last-$ini as value
So later in the code if i change the values of either $ini or $last then this changed value should reflect in the hash such that whenever i retrieved hash value using SASx as key then it should give the latest result.
If You wants to suggest something like Tie:Scalar please bit elaborate on Tie:Scalar thing as i dont know about that
Because somebody has suggested that. But i didn't get that. I found Corion's example is good actually
Please help me
In Section Seekers of Perl Wisdom