in reply to Elegantly dereferencing multiple references
use strict; use warnings; use Data::Dump; my %x = ( a => "red"); my %y = ( b => "green"); my %z = ( c => "black"); sub assign { my (%x, %y, %z) = ( %{$_[0]}, %{$_[1]}, %{$_[2]} ); dd \(%x, %y, %z); }
I'll post later a more elegant but significantly slower solution
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Elegantly dereferencing multiple references
by Eily (Monsignor) on May 13, 2016 at 12:31 UTC | |
by LanX (Saint) on May 13, 2016 at 12:48 UTC | |
|
Re^2: Elegantly dereferencing multiple references
by LanX (Saint) on May 13, 2016 at 13:44 UTC |