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.
In reply to Re^3: recursive. again.
by toolic
in thread recursive. again.
by derpp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |