develooper Front page | perl.perl5.porters | Postings from October 2003

Re: [perl #24342] Coredump when shortening an array during use

From:
Rafael Garcia-Suarez
Date:
October 29, 2003 01:04
Subject:
Re: [perl #24342] Coredump when shortening an array during use
Message ID:
20031029095802.409399d5.rgarciasuarez@free.fr
Going to answer my own question :
> 
> Could someone explain why this is allowed at all ?
> Why can I apply -= to an array slice but not to an array ?

Hm, probably for compatibility with the (mistaken) use
of a one-element slice as an array element.

	@x[2] -= 3;



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