develooper Front page | perl.perl6.language | Postings from December 2001

Re: Apropos of nothing...

Thread Previous
From:
Bart Lateur
Date:
December 13, 2001 12:27
Subject:
Re: Apropos of nothing...
Message ID:
c93i1u457cn4ugeqs337rsg9hg2obahrmc@4ax.com
On Thu, 13 Dec 2001 12:17:44 -0500, Mark J. Reed wrote:

>	@i = (0);
>	@ary[@i] = foo();
>
>How could one get that behavior without the intermediate array?

Parens, likely.

	(@ary[0]) = foo();

-- 
	Bart.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About