in reply to Re^2: What's the difference between stat and sort?
in thread What's the difference between stat and sort?
perl -e 'print((sort(<*>))[1]);'
Once the expression is fully inside parentheses, there is no syntax error. With the square brackets outside the parens, it must be trying to get the first element of the array returned by print(), which doesn't return an array.
|
|---|