>>>>> "HP" == Harry Putnam <rea...@newsguy.com> writes:
HP> Uri will want to scalp me for commenting on something a good bit over HP> my head... but just looking at your push notion. consider yourself scalped! :) HP> I think it might actaully be possible to do. i think you don't understand the OP's goal. this has nothing to do with arrays or inverted hashes. push is the WRONG term and so is append. he wants to take a list of values (parsed from a config it seems) and ADD them to the existing hash. this is usually done with a loop but he wanted to find a simpler way to do it. HP> I don't recognize your notation %{$ptr[-1]->[-1]} but if its really HP> nothing more than a key/value pair. Could you possible get at it by HP> inverting the hash (not reversing) with the snippet of code posted HP> here a while back by Shawn C and included below. that was an array ref accessing its last element which is another array ref and then accessing its last element which is a hash ref and that is dereferenced. that is the hash that he was adding elements to. my suggestions were what he was looking for. you have recently been doing hash inversions so that is your tool of the moment. it is not a super common a technique but it has its uses so every perl hacker should know how to do it. uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/