Subject: | Hard coded Perl version in 00load.t |
Date: | Wed, 01 Nov 2006 06:46:59 -0500 |
To: | bug-Perl6-Subs [...] rt.cpan.org |
From: | Michael G Schwern <schwern [...] gmail.com> |
I was surprised to see this output from Perl6::Subs's tests.
t/00-load.........# Testing Perl6::Subs 0.05, Perl 5.008004, /usr/bin/perl
ok
My Perl is 5.8.8 and in /usr/local/bin/perl. Upon investigation I discovered this code in 00load.t
diag( "Testing Perl6::Subs $Perl6::Subs::VERSION, Perl 5.008004, /usr/bin/perl" );
Ain't much point hard coding that information. It should be:
diag( "Testing Perl6::Subs $Perl6::Subs::VERSION, Perl $], $^X" );