in reply to Global vars?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Global vars?
by tilly (Archbishop) on Oct 30, 2003 at 16:09 UTC |