Problems? Is your data what you think it is? | |
PerlMonks |
Re: hash referencing...best approach?by tcf22 (Priest) |
on Nov 24, 2003 at 20:04 UTC ( [id://309658]=note: print w/replies, xml ) | Need Help?? |
You are referencing the hash to $s, which is local. You could pass in a ref to $sid, or return the hash ref. I prefer the later. Also you are assigning a hash ref to a hash, which is probably what you don't want. {} creates a hash reference, () are used to define a hash. One of these 2 options should work: or Update: Changed %session_hash to $session_hash after realizing that you are creating a hash ref by using {}. - Tom
In Section
Seekers of Perl Wisdom
|
|