in reply to Re^3: Sub hash param by reference
in thread Sub hash param by reference
Hello GrandFather, thank you for your feedback and Wow, I never know param can do like that. I'm not quite understand what is $_[0] but I tested with it and it works well.
sub doSub2 { # use name var instead of $_[0] so can easier to recall it my ($ref_value) = \$_[0]; $$ref_value = "Hello alias"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Sub hash param by reference
by Athanasius (Archbishop) on Jul 10, 2016 at 08:44 UTC | |
by hankcoder (Scribe) on Jul 10, 2016 at 12:46 UTC |