Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spurious 'Modification of a read-only value' #809

Closed
p5pRT opened this issue Nov 3, 1999 · 2 comments
Closed

Spurious 'Modification of a read-only value' #809

p5pRT opened this issue Nov 3, 1999 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Nov 3, 1999

Migrated from rt.perl.org#1736 (status was 'resolved')

Searchable as RT1736$

@p5pRT
Copy link
Author

p5pRT commented Nov 3, 1999

From mjtg@cus.cam.ac.uk

gives the errors

  Useless use of defined operator in void context at -e line 1.
  Modification of a read-only value attempted at -e line 1.

Simpler examples give the expected warnings

  perl -we '${$1}'
  Useless use of a variable in void context at -e line 1.
  Use of uninitialized value at -e line 1.

  perl -we 'defined ${+undef}'
  Useless use of defined operator in void context at -e line 1.
  Use of uninitialized value at -e line 1.

This didn't happen in perl5.003 FWIW. Something to do with
autovivication of references to scalars?

Mike Guy

% perl5.005_62a -V
Summary of my perl5 (revision 5.0 version 5 subversion 62) configuration​:
  Platform​:
  osname=sunos, osvers=4.1.3, archname=sun4-sunos
  uname='sunos nmg1.csi. 4.1.3 1 sun4c '
  config_args='-Doptimise=-O -Uusethreads -des'
  hint=previous, useposix=true, d_sigaction=define
  usethreads=undef useperlio=undef d_sfio=undef
  use64bits=undef usemultiplicity=undef
  Compiler​:
  cc='gcc', optimize='-O', gccversion=2.7.2.3
  cppflags='-I/usr/local/include'
  ccflags ='-I/usr/local/include'
  stdchar='unsigned char', d_stdstdio=define, usevfork=true
  intsize=4, longsize=4, ptrsize=4, doublesize=8
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
  alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries​:
  ld='ld', ldflags =' -L/usr/local/lib'
  libpth=/usr/local/lib /lib /usr/lib /usr/ucblib
  libs=-ldbm -ldl -lm -lc -lposix
  libc=/lib/libc.so.1.8, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
  cccdlflags='-fpic', lddlflags='-assert nodefinitions -L/usr/local/lib'

Characteristics of this binary (from libperl)​:
  Locally applied patches​:
  perldoc.temp
  install.w
  Built under sunos
  Compiled at Oct 27 1999 01​:31​:39
  @​INC​:
  /home/mjtg/perl5.005_62a/lib
  /home/mjtg/perl5.005_62a/lib
  /home/mjtg/perl5.005_62a/lib/site_perl
  .

@p5pRT
Copy link
Author

p5pRT commented Nov 3, 1999

From [Unknown Contact. See original ticket]

Ooops. Bug [ID 19991103.006] is a resend of [ID 19991103.005].

And it's not the perlbugtron's fault - entirely due to my finger
trouble.

Sorry folks.

Mike Guy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant