in reply to Re: \ref
in thread Dereferencing complex data w/o intermediate variable
They are not extra braces. Rather, the braces may be optionally omitted if the thing is a simple scalar name.
So, you can say:
because $temp is a simple scalar name. The canonocal form would be @{$temp}. So, to get rid of the temp, say:$temp= $x->foo(); @list= @$temp;
@list= @{$x->foo()};
|
|---|