in reply to why scalar(@array) is not numeric?
You have a precedence problem. Quoth B::Deparse your code parses as: print(((('number of files: ' . $size) - 2) . "\n"));. print takes a list so you should use a comma rather than the concatenation operator ..
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: why scalar(@array) is not numeric?
by theiss (Novice) on Jul 16, 2009 at 23:14 UTC |