Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Script failed with certain value in the variableby mr_ron (Chaplain) |
on Mar 18, 2017 at 14:59 UTC ( [id://1185147]=note: print w/replies, xml ) | Need Help?? |
The line that reads: if (!defined(Suffix) && defined($version))was almost certainly intended to be if (!defined($suffix) && defined($version))strict would have caught the mistake. !defined(Suffix) should always return false if the code runs. strict and warnings were also recommended by other replies.
Ron
In Section
Seekers of Perl Wisdom
|
|