in reply to why scalar(@array) is not numeric?
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: why scalar(@array) is not numeric?
by MidLifeXis (Monsignor) on Jul 17, 2009 at 16:02 UTC |