APM: Dumb program acting funny...

Bill Raty bill.raty at gmail.com
Wed Oct 18 22:14:40 PDT 2006


You have warnings enabled 'the -w switch on shebang'.

With warnings enabled perl will output a message whenever it detects an
undefined value in a join or string interpolation.  To demonstrate:

  use warnings;
  use strict;

  my $empty = undef;
  print "Perl will warn about this $empty string.\n";

I rarely use warnings in production code.  It is better to locally scope
warnings in code sections where you are certain you must always have data
that is not null.

Regards,

-Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/austin/attachments/20061019/3bfdd146/attachment.html 


More information about the Austin mailing list