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
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Damn right! (Score:2)
Just like that one text editor...
I often use an idiom that I try to fetch an item, and if successful I want to do something with it; if not successful, the code returns
undef(false). Typically, the code goes something like this:but this text editor complains about it, stating, in a dialog box:
every. single. time. I run that script.
Goddamnit, I know already. It's not a typo. Just get out of my way already, and let me do as I please.
That text editor is Padre.
Reply to This
Re: (Score:1)
my $foo == ...in an if statement would be a red flag.where is your bug report? (Score:2)
We could tell you where to turn off the message until we fix the bug. By the way the the feature that is causing that error message is specifically designed to catch mistakes of beginners.
The idea is to catch bugs that can be caused by code like this:
which is valid perl but it is unlikely a beginner would know what it actually does. The example you gave probably should not trigger
Re: (Score:2)
Also I think I have partially fixed that specific bug in 0.59 as it was also causing test failures in Padre where we also use similar constructs here and there.
I think it is still buggy and eventually it should be implemented as a plugin for Perl