go ahead... be a heretic | |
PerlMonks |
FETCHing twice in Tie::FlipFlopby CharlesClarkson (Curate) |
on Dec 19, 2003 at 23:18 UTC ( [id://315946]=perlquestion: print w/replies, xml ) | Need Help?? |
CharlesClarkson has asked for the wisdom of the Perl Monks concerning the following question: While using Tie::FlipFlop, I ran into a problem. Which prints: While this: Prints this:
After a little investigating, I found that, when quoted, FETCH was being called twice in the module for each print. Why is the value fetched twice? And can this be trapped to return the desired result? TIA,Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328
Back to
Seekers of Perl Wisdom
|
|