To make it clearer that it is purely a precedence issue though, you can fix your existing statement by making precedence explicit with brackets:
print "number of files: " . ($size-2) . "\n";
In reply to Re: why scalar(@array) is not numeric?
by aufflick
in thread why scalar(@array) is not numeric?
by theiss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |