in reply to Re: A list returns its last, an array returns its weight
in thread A list returns its last, an array returns its weight
Or am I off the mark here?sub with_parens { ('foo', 'bar', 'baz') } # is equivalent to the following in scalar context sub without_parens { 'foo', 'bar', 'baz' } print scalar with_parens(), $/; print scalar without_parens(), $/; __output__ baz baz
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: A list returns its last, an array returns its weight
by japhy (Canon) on Nov 13, 2002 at 16:26 UTC | |
by broquaint (Abbot) on Nov 13, 2002 at 16:33 UTC | |
by japhy (Canon) on Nov 13, 2002 at 16:45 UTC | |
by princepawn (Parson) on Nov 13, 2002 at 17:26 UTC | |
by Abigail-II (Bishop) on Nov 13, 2002 at 17:32 UTC |