Uri Guttman wrote: >>>>>> "SB" == Steve Bertrand <st...@ibctech.ca> writes: > > SB> $user_ref->{$username}{payment} += $payment ||= $payment; > SB> $user_ref->{$username}{amount} += $amount ||= $amount; > > assuming no entries in payment or amount, you don't need the ||= at > all.
> perl does all sorts of little things like that. read more about > autovivication in my article: > > http://sysarch.com/Perl/autoviv.txt Heh. *grin* I swear, you all wait until people 'cap out', and then politely produce the answers ;) Cheers to that! I'm off to do some IPv6 BGP stuff, then tomorrow, I'll be again using my new editor (Vim) to do some more Perl (although Vim is coming quite nicely and naturally (I'm using only that, and refusing to revert back), I'd like to say that Perl is easier to learn than vi ;) Thanks! Steve
smime.p7s
Description: S/MIME Cryptographic Signature