Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!uunet!rbj From: rbj@uunet.uu.net (Root Boy Jim) Newsgroups: comp.lang.perl Subject: Re: turning on warnings from within a script Message-ID: <1991May16.002134.11005@uunet.uu.net> Date: 16 May 91 00:21:34 GMT References: <1991May11.154445.655@batcomputer.tn.cornell.edu> <1991May11.183203.5273@convex.com> Organization: UUNET Communications Services, Falls Church, VA Lines: 18 tchrist@convex.COM (Tom Christiansen) writes: ?The writeable $^W variable contains the value of the -w switch in 4.0 ?version of perl. For example, the first assignment here gives a warning, ?but the second one doesn't. ? ? $ = 1; # enable -w ? $a = $b[$i]; # generate warning ? $ = 0; # disable -w ? $c = $d[$i]; # remain silent You didn't go and put real control Ws into your script now did you? For shame, for shame! -- [rbj@uunet 1] stty sane unknown mode: sane