shift only returns one element from @_. You probably mean:my($num1,$flag)=shift;
my($num1,$flag)=@_;
blokhead
In reply to Re: factorial through recursion
by blokhead
in thread factorial through recursion
by hnd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |