"be consistent" | |
PerlMonks |
Re: Are there corner cases I am missingby choroba (Cardinal) |
on Nov 14, 2011 at 16:54 UTC ( [id://937983]=note: print w/replies, xml ) | Need Help?? |
What should the code do? If the version string is 5.14.0, you are replacing the build value(?) with an undef. You should rather test for defined. But, if your intention is to supply undefs for missing information at the end of the string, you can delete most of the code: for 5.14.0, revision is already undef.
In Section
Seekers of Perl Wisdom
|
|