Why Should I Use The -w Argument With My Perl Programs

Why Should I Use The -w Argument With My Perl Programs


  • 11 Jan, 2012

    Many Perl developers use the -w option of the interpreter, especially during the development stages of an application. This warning option turns on many warning messages that can help you understand and debug your applications.To use this option on Unix systems, just include it on the first line of the program, like this:#!/usr/bin/perl -wIf you develop Perl apps on a DOS/Windows computer, and you're creating a program named myApp.pl, you can turn on the warning messages when you run your program like this:perl -w myApp.pl

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.