Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: (tye)Re: use warnings vs. perl -w

by $code or die (Deacon)
on Jan 24, 2001 at 20:59 UTC ( #54036=note: print w/ replies, xml ) Need Help??


in reply to (tye)Re: use warnings vs. perl -w
in thread use warnings vs. perl -w

You're right, it does work, but I just tried this:

#!/usr/bin/perl -w print "Content-Type: text/html\n\n"; $t = "hello world"; print "$h, $t";
It doesn't complain about $h being uninitialised. It does however, if you take out the HTTP header.

Update: I was running this on a Win32 webserver.

Is that the way it should be?

$code or die
Using perl at
The Spiders Web


Comment on Re: (tye)Re: use warnings vs. perl -w
Download Code
(tye)Re2: use warnings vs. perl -w
by tye (Cardinal) on Jan 24, 2001 at 21:06 UTC

    For me it complains either way, as it should.

            - tye (but my friends call me "Tye")
Re: Re: (tye)Re: use warnings vs. perl -w
by extremely (Priest) on Jan 25, 2001 at 08:53 UTC
    If you are running under a webserver, the non-fatal errors my be hiding in the error log of your server or may even have been piped away to nothing, rather depends on the webserver. Check the error logs and see.

    --
    $you = new YOU;
    honk() if $you->love(perl)

      When I want to capture my warnings while running programs under IIS, I open STDERR to a text log file and then look in there for information.
Re^3: use warnings vs. perl -w
by Anonymous Monk on Oct 29, 2012 at 12:05 UTC
    These days, the -w command line flag is usually replaced with the warnings pragma, as the latter is more flexible, and has scope that is limited to the enclosing block, while -w is global in effect.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://54036]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2014-07-11 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (218 votes), past polls