develooper Front page | perl.perl5.porters | Postings from April 2000

Re: [ID 20000415.002] v.5.6.0

Thread Previous | Thread Next
From:
Ilya Zakharevich
Date:
April 15, 2000 10:54
Subject:
Re: [ID 20000415.002] v.5.6.0
Message ID:
200004151754.NAA25063@monk.mps.ohio-state.edu
Albert N. MICHEEV writes:
> Ex2:
>   @_ = map{
>       $_ += 1;
>   }(5,2,7,0,7,7);
> 
>   Exception: Modification of a read-only value attempted at 1.pl line 1

Why are you surprised?  Did you mean map {$_ + 1} ?

Ilya

Thread Previous | Thread Next


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