raghuprasad241 has asked for the wisdom of the Perl Monks concerning the following question:
GMAN (Good Morning, Afternoon, Night) depending on where you are :-)
Is it possible to print individual elements of a list with out putting them into an array ? I think putting the list into an array is a wastage of memory if you are just trying to print it. For e.g. I am trying to do below with no success
perl -e 'use v5.10; say (localtime)[1]' syntax error at -e line 1, near ")[" Execution of -e aborted due to compilation errors.
Am I missing something simple ?
Thanks!
|
|---|