Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rutgers!mit-eddie!uw-beaver!cornell!batcomputer!theory.tn.cornell.edu!lijewski From: lijewski@theory.tn.cornell.edu (Mike Lijewski) Newsgroups: comp.lang.perl Subject: turning on warnings from within a script Message-ID: <1991May11.154445.655@batcomputer.tn.cornell.edu> Date: 11 May 91 15:44:45 GMT Sender: news@batcomputer.tn.cornell.edu Organization: Cornell National Supercomputer Facility Lines: 14 Originator: lijewski@theory.tn.cornell.edu Nntp-Posting-Host: theory.tn.cornell.edu Is there any way to turn on the "-w" switch from within Perl? What I would like to be able to do is turn on the "-w" switch from inside of a Perl script, depending on the options I pass to the script. Specifically, if I put some debugging code in my script, which I toggle with a "-d" switch, I would like to enable Perl's warning messages as well. I don't like running with "-w" enabled since Perl warns about some things which are perfectly legal. -- Mike Lijewski (H)607/272-0238 (W)607/254-8686 Cornell National Supercomputer Facility ARPA: mjlx@eagle.cnsf.cornell.edu BITNET: mjlx@cornellf.bitnet SMAIL: 25 Renwick Heights Road, Ithaca, NY 14850