Hello all!
My first question in this group =)
Can someone explain me why this work fine:

#!/usr/bin/perl -w
sub func
 {
  return 10;
 }
print 5 * func, "\n";
The answer is 50. Good!

But then i change func and 5:
#!/usr/bin/perl -w
sub func
{
return 10;
}
print func * 5, "\n";

The output is 10 Without multiplication by 5 and "\n".

Why this happens, plz tell.
 Thank you!!


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to