Is there a way to get a certain value from an array retun without first assigning the return to a variable? For instance, I'd like to use something like:
`ls -sl -fl`[0];
instead of:
$val = `ls -sl -fl`;
$val[0];
Just seems like a waste to be creating variables for one time uses.
Replies
I wonder if the variables get cleared from memory at the end of procedure codes, or at the end of entire script call ...
But well, I usually just used $tmp or such, It's really insignificant.