This is the sort of thing that prototypes are good for. You get to pass variables seemingly by value, but it is really a reference that is passed. That allows the original variable to be modified.
That will mogrify the variables in place.sub mogrify (\$\$\$) { my ($xref, $yref, $zref) = @_; # do stuff to $$xref and friends 1; } mogrify $x, $y, $z;
After Compline,
Zaxo
In reply to Re: Global vars?
by Zaxo
in thread Global vars?
by mfuller
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |