in reply to printing element of anonymous array
Hello perltux,
FTR, you can also disambiguate the syntax with a plus sign:
1:41 >perl -e "print (gmtime(time))[6];" syntax error at -e line 1, near ")[" Execution of -e aborted due to compilation errors. 1:41 >perl -e "print ((gmtime(time))[6]);" 6 1:41 >perl -e "print +(gmtime(time))[6];" 6 1:41 >
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
|
|---|