Subscribe to the RSS feed for the devdaily.com blog
Page not found (404 error) | alvinalexander.com

Page not found (404 error)

I’m sorry, the URL you are looking for can't be found.

This may be because I’ve made several significant changes to the website lately. If you want to take a few moments to search for the document you were looking for, you can try the Search Page here.

(I am trying to fix all the links I have broken, but it takes time.)

Thank you for your patience, and have a nice day!

Alvin Alexander
Owner, Editor, Link-breaker, Repairman,
AlvinAlexander.com


Why should I use the -w argument with my Perl programs?

Question: Why should I use the -w argument with my Perl programs?

Answer:

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 -w

If 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

(You can also use that option on Unix and Linux systems, but I think it's more typicaly to include the -w option on the first line of your Perl script on Unix systems.)

Give this warning option a try the next time you think you're having any problems with your Perl programs, and see how it helps.

What's Related



devdaily logo