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

my($:) - wrong error message #76

Closed
p5pRT opened this issue Jun 17, 1999 · 1 comment
Closed

my($:) - wrong error message #76

p5pRT opened this issue Jun 17, 1999 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Jun 17, 1999

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

Searchable as RT879$

@p5pRT
Copy link
Author

p5pRT commented Jun 17, 1999

From @tamias

(I report this with perlbug for 5.004_04, but I have verified the problem
with 5.005_02.)

Perl outputs the wrong error message when the special variable $​: is
lexicalized​:

% perl -e 'my($​:);'
"my" variable $​: can't be in a package at -e line 1.

It should give the same error message as all the other special variables​:

% perl -e 'my($!);'
Can't use global $- in "my" at -e line 1.

But it outputs the error message for a package variable being lexicalized​:

% perl -e 'my $​::foo'
"my" variable $​::foo can't be in a package at -e line 1.


Site configuration information for perl 5.00404​:

Configured by sting at Fri Jan 9 23​:03​:03 EST 1998.

Summary of my perl5 (5.0 patchlevel 4 subversion 4) configuration​:
  Platform​:
  osname=irix, osvers=6.3, archname=IP32-irix
  uname='irix linguist 6.3 12161207 ip32 '
  hint=recommended, useposix=true, d_sigaction=define
  bincompat3=y useperlio=undef d_sfio=undef
  Compiler​:
  cc='cc -n32', optimize='-O3', gccversion=
  cppflags='-D_BSD_TYPES -D_BSD_TIME -OPT​:Olimit=0 -I/usr/local/include -DLANGUAGE_C'
  ccflags ='-D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1184 -OPT​:Olimit=0 -I/usr/local/include -DLANGUAGE_C'
  stdchar='unsigned char', d_stdstdio=define, usevfork=false
  voidflags=15, castflags=0, d_casti32=define, d_castneg=define
  intsize=4, alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries​:
  ld='ld', ldflags =' -L/usr/local/lib -L/usr/lib32 -L/lib32'
  libpth=/usr/local/lib /usr/lib32 /lib32 /lib /usr/lib
  libs=-lgdbm -lm -lc
  libc=/usr/lib32/libc.so, so=so
  useshrplib=false, libperl=libperl.a
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
  cccdlflags=' ', lddlflags='-n32 -shared -L/usr/local/lib -L/usr/lib32 -L/lib32'

Locally applied patches​:
 


@​INC for perl 5.00404​:
  /usr/linguist/lib/perl5/IP32-irix/5.00404
  /usr/linguist/lib/perl5
  /usr/linguist/lib/perl5/site_perl/IP32-irix
  /usr/linguist/lib/perl5/site_perl
  .


Environment for perl 5.00404​:
  HOME=/usr/people/rjk
  LANG=C
  LD_LIBRARY_PATH (unset)
  LOGDIR (unset)
  PATH=/sbin​:/usr/people/rjk/scripts​:/usr/people/rjk/bin​:/usr/linguist/bin​:/usr/sbin​:/usr/bsd​:/usr/bin​:/usr/bin/X11​:/usr/local/bin​:/usr/etc​:.
  PERL_BADLANG (unset)
  SHELL=/bin/tcsh

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