Hi
Can u do the following change
Use local instead of my
my is defined only within its scope.i.e subfunction..it is not recognised elsewhere.
c if it works
thanx
-
Sify Mail - now with Anti-virus protection powered by Trend Micro, USA.
Know mor
Hi, Todd (and Wiggins!), :)
On Wed, 13 Nov 2002, todd shifflett wrote:
> I am trying to use a code reference from within a function to
> recursively call a given separate function...
> #--- LIKE THIS --vv
> sub hello {
> my $name = shift;
> return "Hello, $name!\n";
> }
>
> sub foo
This is a guess but I think you can't 'my' the fft variable and then use
it as a reference. Because it is looking for main:: which your my'd
variable will not be in that namespace, or any namespace for that
matter. If you are working under use strict trying our'ing it instead,
or just removin