in reply to A new user question on OO Perl
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A new user question on OO Perl
by Anonymous Monk on Dec 19, 2007 at 05:57 UTC | |
by chromatic (Archbishop) on Dec 19, 2007 at 08:42 UTC |