Re: [htmltmpl] H-T strangeness with CGI-Session
Brought to you by:
samtregar
From: Puneet K. <pk...@ei...> - 2004-03-26 21:20:08
|
m.s...@gm... wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Puneet, hi list > > You are on the right list, it's an H::T issue and has nothing to with > CGI::Session. I discovered the same some weeks ago. > > It seems than H::T can contaminate your data structure - for the sake > of speed, no copying is done in H::T. If it really bothers you, you > might consider using a clone package (try > http://search.cpan.org/search?query=clone&mode=all) to first copy > your data structure, then let H::T work on the clone and discard it > after displaying. > Markus, Thanks for the reply. This is very informative, and I will follow your suggestion (and hope the H-T developers will consider this as a problem to be solved). But, my question is -- where on earth did I let H-T "contaminate" my AofH? I am hand-crafting my own AofH -- # A hash to hold the current rolodex entry my %rolodexentry = ( ROLODEXVAL => $rolodexval, ROLODEXTEXT => $rolodextext ); # Add the current rolodexentry to the existing rolodex push(@rolodex, \%rolodexentry); Where, o, where is H-T even touching all this? Thanks, Puneet. |