http://www.perlmonks.org?node_id=728770


in reply to Re: Unexpected deletion of data using > operator
in thread Unexpected deletion of data using > operator

Thanks for your input, but surely bringing $item out of a hat at the end is what you were criticising me for in the first place?? :)

davidrw's reply above (the most compressed version) removes the problem (typo not withstanding), simply by copying and pasting over my previous code. Therefore there must be a problem in that code, but I have not yet found it. Cheers.

  • Comment on Re^2: Unexpected deletion of data using > operator

Replies are listed 'Best First'.
Re^3: Unexpected deletion of data using > operator
by n3toy (Hermit) on Dec 07, 2008 at 23:01 UTC
    Whoops... Add: use MagicHat; to the top of the snippet. :-)

    This will teach me to test code before posting.