You probably don't need the parentheses on the right side of the expression; they're superfluous. The parentheses on the left side put the entire expression into list context. The get_list method probably returns a list, which when evaluated in scalar context will give you something besides the first element of the list.
In list context, you'll get the first element of the list, which is presumably what you expect.
This is all just a guess though; we'd have to see the code in get_list to tell you for sure.
In reply to Re: A new user question on OO Perl
by chromatic
in thread A new user question on OO Perl
by noobee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |