in reply to Re^2: recursive. again.
in thread recursive. again.
print $array[ $i - 1 ];
I'm pretty sure $i is initialized. What about the array? Let's check:
use Data::Dumper; print Dumper(\@array);
Nope. The array is empty. That's because you never call the number function, as AnonyMonk already pointed out.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: recursive. again.
by derpp (Acolyte) on Aug 24, 2010 at 00:36 UTC | |
by muba (Priest) on Aug 24, 2010 at 01:59 UTC | |
by TomDLux (Vicar) on Aug 24, 2010 at 05:45 UTC |