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

[ID 20000415.002] v.5.6.0

Thread Next
From:
Albert N. MICHEEV
Date:
April 15, 2000 09:59
Subject:
[ID 20000415.002] v.5.6.0
Message ID:
955817798@f80.n5049.z2
Ex1:
  @_ = map{
      $_ += 1;
  }qw/5 2 7 0 7 7/;

  Exception: Modification of a read-only value attempted at 1.pl line 1


Ex2:
  @_ = map{
      $_ += 1;
  }(5,2,7,0,7,7);

  Exception: Modification of a read-only value attempted at 1.pl line 1


Ex3:
  @_ = map{
      $_ += 1;
  }1..6;

  All OK


???


P.S.

>perl -v

This is perl, v5.6.0 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)


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