Hi Kaushal

-w is to enable warning messages.


Try running the following code to see the difference with and w/o -w.

x.pl
---------------------
$str=a+2;

print $str,"\n";
---------------------

$ perl x.pl
2

====

$ perl -w x.pl
Unquoted string "a" may clash with future reserved word at p2.pl line 3.
Argument "a" isn't numeric in addition (+) at p2.pl line 3.
2


Thanks
Prasanna

-----Original Message-----
From: Kaushal Shriyan [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 19, 2006 5:48 PM
To: beginners@perl.org
Subject: Query

Hi All

#!/usr/bin/perl -w

whats -w flag stands for and what is its use, I mean How do i use it
and any other flags are also there, Please specify

Thanks

Kaushal

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to