in reply to Modifying passed-in variables
(The array @_ is magic and you need indices to access these aliases. A simple assignment will only copy values)
If you want to address the alias by name you need an indirect perl reference, like
$data = \$_[0]; $$data ++;
Be careful to not confuse perl references and perl aliases.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
Heavily expanded
|
|---|