|
Are you sure you can put var into double quotes of a print ? I didn't make perl for a while (stopped at perl 5.005) I just remember there was a way to concatenate var. The function was someting like "join", it could be that :
print join(" ","The product is", ($num1 x $num2));
It may not work and you'll find the asnwer Perl is a too easy language to learn(less than 3 days). The only prob. I remember that was perl 4 which had no real local var (even with "local" specified), since Perl 5 there is "my" which allows you to make real local values into a sub. |