For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > March 2004 > warning mode









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author warning mode
Paul Shepherd

2004-03-18, 6:47 pm

i know that in unix i'd start the script perl -w but how do i switch warning
mode on in a windows perl script?


Jürgen Exner

2004-03-18, 6:47 pm

Paul Shepherd wrote:
> i know that in unix i'd start the script perl -w but how do i switch
> warning mode on in a windows perl script?


use warnings;

jue


fifo

2004-03-18, 6:47 pm

At 2004-03-06 11:33 -0000, Paul Shepherd wrote:
> i know that in unix i'd start the script perl -w but how do i switch warning
> mode on in a windows perl script?
>


You can do that in Windows too, however it's usually best to enable
warnings (on any platform) with

use warnings;
Tintin

2004-03-18, 6:47 pm


"Paul Shepherd" <paul.shepherd@virgin.net> wrote in message
news:c2f18o$ilb$1@news6.svr.pol.co.uk...
> i know that in unix i'd start the script perl -w but how do i switch

warning
> mode on in a windows perl script?


In exactly the same way.

If you have Perl 5.6.x or greater, you can use

use warnings;


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com