in reply to Shortcut operator for $a->{'b'}=$b if $b;
Ugly, but short:
$_ and $a->{b} = $_ for $b;
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Shortcut operator for $a->{'b'}=$b if $b;
by chester (Hermit) on Sep 20, 2005 at 16:43 UTC | |
by merlyn (Sage) on Sep 20, 2005 at 16:48 UTC | |
by chester (Hermit) on Sep 20, 2005 at 16:50 UTC | |
by ikegami (Patriarch) on Sep 20, 2005 at 16:48 UTC |
In Section
Seekers of Perl Wisdom