in reply to Re: Re: Perl Idioms Explained - ${\$obj->method} and @{[sort @list]}
in thread Perl Idioms Explained - ${\$obj->method} and @{[sort @list]}
Read Arrays are not lists and Scalars, Lists, and Arrays and repeat to yourself three times - "('foo', 'bar', 'baz') is not an array" ;-)
I'm with Abigail-II. The \ operator has lots of weird cases that surprise you. For example:
\@foo # reference to array @foo \(@foo, $a) # list of reference to array @foo and scalar $a \(@foo) # list of references to contents of @foo
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Perl Idioms Explained - ${\$obj->method} and @{[sort @list]}
by bradb (Sexton) on Aug 25, 2003 at 00:42 UTC | |
by adrianh (Chancellor) on Aug 25, 2003 at 23:58 UTC |
In Section
Meditations