From: "Shawn H Corey" <shawnhco...@gmail.com> > On 11-01-10 10:21 AM, Sunita Rani Pradhan wrote: >> Yes I can use that . Does this -w option works on windows or not ? > > I do believe so but if you `use warnings;` you can turn it off. You > can't do that with -w. > > use warnings; > > { > no warnings; > # some code > } >
Well, you can use: #!/usr/bin/perl -w { no warnings; print $ok; } It will work and it won't print the warning. The -w switch work, but the -W switch doesn't accept using "no warnings;". But anyway, using use warnings; is recommended because it is cleaner to use use warnings; #and no warnings; then to use the -w switch and then eventually "no warnings;". And the shebang line is not required in that case. For example, I haven't used it for years. Octavian -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/