|
|
| Welcome to the Monastery | |
| PerlMonks |
RE: RE: Re: Scoped Variables in a Recursive Function.by japhy (Canon) |
| on Sep 28, 2000 at 21:12 UTC ( #34431=note: print w/ replies, xml ) | Need Help?? |
|
That ought to work, but it's silly, since it creates a code
reference EVERY TIME you run Merge(). There's no reason to
use a code reference. Define Merge() and MergeSort() in the
same block, and have @array be shared between them.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||