in reply to factorial through recursion
In addition to missing braces in the if-statement, you have a problem with this line:
shift only returns one element from @_. You probably mean:my($num1,$flag)=shift;
my($num1,$flag)=@_;
blokhead
|
---|
In Section
Seekers of Perl Wisdom