in reply to Re: (localtime)[3] vs. ((localtime)[3])
in thread (localtime)[3] vs. ((localtime)[3])
$ perl -wle 'print(localtime)[3]' syntax error at -e line 1, near ")[" Execution of -e aborted due to compilation errors. $
The warning you are referring to is silly. It'll trigger in constructs like:
print (3) + 4
but only if you have a single space between 'print' and the opening parenthesis.
And you thought Python was evil because it gave meaning to whitespace.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
3Re: (localtime)[3] vs. ((localtime)[3])
by jeffa (Bishop) on Sep 23, 2003 at 12:33 UTC | |
by Abigail-II (Bishop) on Sep 24, 2003 at 08:37 UTC | |
by BUU (Prior) on Sep 24, 2003 at 06:32 UTC |