- or download this
my %d = ("foo", "bar"); sub fs { $_[0] = "quux"; } fs(values %d); prin
+t join(" ", %d), $/;
# OUTPUT: foo quux
- or download this
my %d = ("foo", "bar"); sub fi { ${$_[0]}[0] = "quux"; } fi([values %d
+]); print join(" ", %d), $/;
# OUTPUT: foo bar
- or download this
my %d = ("foo", "bar"); sub fi { ${$_[0]}[0] = "quux"; } sub capture {
+ \@_ } fi(capture(values %d)); print join(" ", %d), $/;
# OUTPUT: foo quux