in reply to Re: Re: Re: A list returns its last, an array returns its weight
in thread A list returns its last, an array returns its weight
In list context, a comma-separated group of expressions is a list.... as long as the CSGoE is surrounded by parens e.g
Otherwise it's just a CSGoE :)my @foo = "one", "two", "three"; my @bar = ("one", "two", "three"); print @foo, $/, @bar, $/; __output__ one onetwothree
_________
broquaint
update: ignore me, I'm wrong
broquaint goes off to study perlop
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: A list returns its last, an array returns its weight
by japhy (Canon) on Nov 13, 2002 at 16:45 UTC |