in reply to Re^2: array element return syntax
in thread array element return syntax
print is claiming your parens. In other words, Perl sees your code as
print( ... )[2];
To fix the problem, use
print( (localtime(time))[2] );
or
print +(localtime(time))[2];
|
|---|