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

strict doesn't work #1090

Closed
p5pRT opened this issue Jan 26, 2000 · 7 comments
Closed

strict doesn't work #1090

p5pRT opened this issue Jan 26, 2000 · 7 comments

Comments

@p5pRT
Copy link

p5pRT commented Jan 26, 2000

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

Searchable as RT2043$

@p5pRT
Copy link
Author

p5pRT commented Jan 26, 2000

From nagylzs@delfin.klte.hu

I have noticed a strange thing while writting a simple
"Set" class in perl. During my tests, i wrote a litte script​:

use strict;
use Set;

$a = Set->new();

__END__

...and it worked! Then I wrote to a mailing list, and
the final result​:

use strict;
$a = 1;
__END__

This is the simplest script which seems to ignore
"use strict". It works with the name "$b" too.
But I couldn't find any more. (For example​:

~>perl
use strict;
$c=1;
Global symbol "c" requires explicit package name at - line 2.

Please let me know if this was a bug.
Your sincerely​:

  Laszlo, Nagy

Perl Info


Site configuration information for perl 5.00503:

Configured by root at Wed Mar 31 19:22:02 DFT 1999.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=aix, osvers=4.3.2.0, archname=aix
    uname='aix esther 3 4 00920517a000 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=8192 -I/usr/local/include'
    ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=8192 -I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lnsl -ldbm -ldb -ldl -lld -lm -lc -lcrypt -lbsd -lPW
    libc=, so=a, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-bE:perl.exp'
    cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc -L/usr/local/lib'

Locally applied patches:
    


@INC for perl 5.00503:
    /usr/local/lib/perl5/5.00503/aix
    /usr/local/lib/perl5/5.00503
    /usr/local/lib/perl5/site_perl/5.005/aix
    /usr/local/lib/perl5/site_perl/5.005
    .


Environment for perl 5.00503:
    HOME=/home/hallg14/nagylzs
    LANG=en_US
    LANGUAGE (unset)
    LC__FASTMSG=true
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/home/hallg14/nagylzs/bin
    PERL_BADLANG (unset)
    SHELL=/usr/bin/csh

@p5pRT
Copy link
Author

p5pRT commented Jan 26, 2000

From [Unknown Contact. See original ticket]

Nagy Laszlo Zsolt pm1 9609 (lists.p5p)​:

use strict;
$a = 1;
__END__

This is the simplest script which seems to ignore
"use strict". It works with the name "$b" too.

This is known; in fact, it's not a bug, and a rather popular non-bug at
that.

$a and $b are special variables because of their role in sort()
This is documented in the strict.pm that's in the development series;
for the moment, perldoc -f sort will tell you about it.

--
Imbalance of power corrupts and monopoly of power corrupts absolutely.
  -- Genji

@p5pRT
Copy link
Author

p5pRT commented Jan 26, 2000

From [Unknown Contact. See original ticket]

Simon Cozens writes​:

This is the simplest script which seems to ignore
"use strict". It works with the name "$b" too.

This is known; in fact, it's not a bug, and a rather popular non-bug at
that.

According to the revised perl5-porters drinking game rules, you should
all have taken a drink when this bug report was filed. Unfortunately,
since Simon's reply neither claimed ``it works for me'' nor promised
Sarathy's execution as penance, no bonus drink was awarded.

Nat

@p5pRT
Copy link
Author

p5pRT commented Jan 26, 2000

From @TimToady

I still think we should turn perlbug into an AI project capable of
second guessing anything the user might want to report​:

  "I'm sorry, Dave, but that's a feature."

Larry

@p5pRT
Copy link
Author

p5pRT commented Jan 26, 2000

From [Unknown Contact. See original ticket]

Nathan Torkington wrote​:

Simon Cozens writes​:

This is the simplest script which seems to ignore
"use strict". It works with the name "$b" too.

This is known; in fact, it's not a bug, and a rather popular non-bug at
that.

According to the revised perl5-porters drinking game rules, you should
all have taken a drink when this bug report was filed. Unfortunately,
since Simon's reply neither claimed ``it works for me'' nor promised
Sarathy's execution as penance, no bonus drink was awarded.

Nat

What are the rest of the rules?

Take a drink every time Ilya slags TomC, or vice-versa?

-Mark

--
'Failure is _NOT_ an option. ...
  ... It comes bundled with every Microsoft product.'
--
Mark T. Johns, Webmaster, RIMS - http​://www.rims.com/
email​: xmtj@​rims.com - BBS​: http​://rimsweb.rims.com/ubb/
voice​: (630) 428-5389

@p5pRT
Copy link
Author

p5pRT commented Jan 26, 2000

From @TimToady

Mark T. Johns writes​:
: What are the rest of the rules?
:
: Take a drink every time Ilya slags TomC, or vice-versa?

No, that happens much too regularly to be useful. Psychologists have shown
that random reinforcement is much better at inducing addictive behavior.

Larry

@p5pRT
Copy link
Author

p5pRT commented Jan 26, 2000

From [Unknown Contact. See original ticket]

At 12​:33 26/01/00 -0600, Mark T. Johns wrote​:

What are the rest of the rules?

Take a drink every time Ilya slags TomC, or vice-versa?

drinking games are designed to get people drunk ... not comatose ;-)

Greg

--
"Computer, if you don't open that exit hatch pretty damn pronto, I shall go
straight to your major data banks with a very large axe and give you a
reprogramming you will never forget, capisco? [Pause] Okay. Get the axe."
- Zaphod Beeblebrox , The Hitchhiker's Guide to the Galaxy
**** Greg McCarroll (greg@​mccarroll.demon.co.uk), London, England ****

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