in reply to Re: reference to array element?
in thread reference to array element?
Ok... I figured out what threw me off. I was using Devel::ptkdb to try to trace down a problem (I'll get to it in a min), when I noticed that the variables being passed were all "\####", when they were suppost to be references (Makes me wonder if you can change the constant of a number... think about it... my $num = \1; $$num = 543; print 1; Anyway, so that explains the appearance that it wasn't really a reference. As to the actual problem... I was using $$_[0] to try to access the data within the sub, and that doesn't work... need ${$_[0]}.
Anyway, thanks for helping me cut my debug time significantly by convincing me that what I was sure was the problem, wasn't.
Edit:: Added link to Devel::ptkdb reference.My code doesn't have bugs, it just develops random features.
Flame ~ Lead Programmer: GMS (DOWN) | GMS (DOWN)
|
|---|