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

Closed
p5pRT opened this issue Oct 1, 1999 · 2 comments
Closed

$^W documentation #668

p5pRT opened this issue Oct 1, 1999 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Oct 1, 1999

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

Searchable as RT1548$

@p5pRT
Copy link
Author

p5pRT commented Oct 1, 1999

From jochen.stenzel.gp@icn.siemens.de

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.

Greetings

  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:
  Platform:
    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
  Compiler:
    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/libc.so, 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:
    /usr/local/perl5.005/lib/5.00503/sun4-solaris-thread
    /usr/local/perl5.005/lib/5.00503
    /usr/local/perl5.005/lib/site_perl/5.005/sun4-solaris-thread
    /usr/local/perl5.005/lib/site_perl/5.005
    .


Environment for perl 5.00503:
    HOME=/user/ets
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/data/staroffice_sun5/solaris-sparc/lib:/data/staroffice_sun5/solaris-sparc/lib:/data/staroffice_sun5/solaris-sparc/lib:/data/SPARCworks_SunOS5_sho51_3.1/lib:/usr/dt/lib:/usr/openwin/lib:/usr/lib:/usr/ucblib
    LOGDIR (unset)
    PATH=/data/staroffice_sun5/solaris-sparc/bin:/data/staroffice_sun5/solaris-sparc/bin:/data/staroffice_sun5/solaris-sparc/bin:/data/SPARCworks_SunOS5_sho51_3.1/bin:/data/SPARCworks_SunOS5_sho51_3.1/SC4.0/bin:/user/ets/5bin:/usr/dt/bin:/usr/openwin/bin:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/local/bin:/usr/ucb:/data/cs_132.29/system/tools:/data/ars_SunOS5/bin:.:/user/ets/bin:/etc:/pro/radix/bin:/pro/radix/master/ghosts:/pro/radix/master/master_tools:/pro/radix/master/help_tools:/opt/SUNWwabi/bin:/usr/atria/bin:/user/ets/perl/sdf/bin:/tool/alocal/kde/bin:/usr/atria/bin:/user/ets/perl/sdf/bin:/tool/alocal/kde/bin:/usr/atria/bin:/user/ets/perl/sdf/bin:/tool/alocal/kde/bin
    PERL_BADLANG (unset)
    SHELL=/bin/csh

@p5pRT
Copy link
Author

p5pRT commented Oct 2, 1999

From [Unknown Contact. See original ticket]

On Fri, 1 Oct 1999 jochen.stenzel.gp@​icn.siemens.de 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​://www.rahul.net/jeffrey/ovs/

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