Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Test::Harness::Straps->anaylze() return value changeby swkronenfeld (Hermit) |
on Apr 30, 2007 at 17:44 UTC ( [id://612820]=perlquestion: print w/replies, xml ) | Need Help?? |
swkronenfeld has asked for the wisdom of the Perl Monks concerning the following question:
I just inherited some code that uses Test::Harness::Straps across a variety of platforms. I discovered that I have two different versions of Straps.pm (on two different platforms), but both of them are labeled 0.26.
The biggest difference that I noticed is that the analyze function returns a hash in one version, and returns a reference in the other version. I was unable to find the change history online for specifically Test::Harness::Straps (I looked in the Test::Harness package change history, but it did not help). Below I have attached the top 20 or so lines from each file, down to the point where you can see that analyze returns a hash for one, and a reference for the other. It appears that the latter is the newer form, as that is what I see on CPAN. Can anyone enlighten me on this? Rather than upgrading some of the older systems, I am about to put in code that treats the return value differently depending on if it is a reference. But before doing so, I would like to understand why I have different versions on two different systems (with the same version of perl), and why they have the same version number. Thanks!
And the other system:
Back to
Seekers of Perl Wisdom
|
|