in reply to Re: Dynamic Hash value
in thread Dynamic Hash value
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
Thanks