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

$^W documentation #668

p5pRT opened this issue Oct 1, 1999 · 2 comments

$^W documentation #668

p5pRT opened this issue Oct 1, 1999 · 2 comments


Copy link

p5pRT commented Oct 1, 1999

Migrated from (status was 'resolved')

Searchable as RT1548$

Copy link

p5pRT commented Oct 1, 1999


This is more a hint than a bug, and possibly it's already known
- sorry then. The report concerns the documentation of $^W.
Currently, it implies that $^W=0 disables -w, in other words,
that $^W and -w are synonyms. But this is not completely true
because of the two phases precompilation and runtime - a $^W
assignment outside BEGIN scopes does NOT affect warnings produced
by the compiler, e.g. "Variable used only once."

So I propose to simply add a more detailed explanation where
$^W influences which warnings.


  J. Stenzel

Perl Info

Site configuration information for perl 5.00503:

Configured by root at Wed Apr  7 18:28:49 MET DST 1999.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
    osname=solaris, osvers=2.6, archname=sun4-solaris-thread
    uname='sunos brutos 5.6 generic_105181-12 sun4u sparc sunw,ultra-5_10 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define useperlio=undef d_sfio=undef
    cc='gcc -B/usr/ccs/bin/', optimize='-O', gccversion=2.8.1
    cppflags='-D_REENTRANT -I/usr/local/include -I/opt/gnu/include'
    ccflags ='-D_REENTRANT -I/usr/local/include -I/opt/gnu/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=16
    alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib -L/opt/gnu/lib'
    libpth=/usr/local/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -lgdbm -ldl -lm -lposix4 -lpthread -lc -lcrypt
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib -L/opt/gnu/lib'

Locally applied patches:

@INC for perl 5.00503:

Environment for perl 5.00503:
    LANG (unset)
    LANGUAGE (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Copy link

p5pRT commented Oct 2, 1999

From [Unknown Contact. See original ticket]

On Fri, 1 Oct 1999​ wrote​:

So I propose to simply add a more detailed explanation where
$^W influences which warnings.

The docpatch seems to have been left out of your message. :-)

Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case​: http​://

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

No branches or pull requests

1 participant