Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
    • For the most part, the only warning perl issued during runtime for my programs 'Use of uninitialized value ...', which is a pretty lame warning since Perl defines new created variables to be, er, undefined.

    I always use 'perl -w'. I almost always find that 'Use of unitialized value' inicates a mistake that I need to correct. Sure, if you are testing for defined(), then the code can catch this and do something intelligent, but that's not usually the case in my code.

    Most typically, the use of an unitiali

    • I use perl -w but also no warnings 'uninitialized' as I do stuff like:
      my $x = something_that_might_return_undef();
      if ($x eq 'blah') {
           # i know 'blah' ne undef
      }
      and hate:
      if ($x && $x eq 'blah') {}
      • I don't get it. Seems like only half the time when I get unitialized warnings it's completely harmless. The rest of the times, something_that_might_return_undef() is returning undef and I'm not expecting it to and I end up propagating an undef down into the code, with it being a problem far from the site of the original crime.