Re: use Module VERSION; ignoring version???

2005-08-26 Thread JupiterHost.Net
You'll see that the author of this module has incorrectly implemented the VERSION method as: sub VERSION { $VERSION } From perldoc UNIVERSAL: "VERSION ( [ REQUIRE ] )" "VERSION" will return the value of the variable $VERSION in the package the object is blessed in

RE: use Module VERSION; ignoring version???

2005-08-25 Thread Bob Showalter
JupiterHost.Net wrote: > How come "use MODULE VERSION;" works sometimes and not others? > > In this case: > > $ perl -mstrict -we 'use CGI 3.12;print "$CGI::VERSION\n";' > CGI version 3.12 required--this is only version 3.11 at -e line 1. > BEGIN failed--compilation aborted at -e line 1. > $ perl

use Module VERSION; ignoring version???

2005-08-25 Thread JupiterHost.Net
How come "use MODULE VERSION;" works sometimes and not others? In this case: $ perl -mstrict -we 'use CGI 3.12;print "$CGI::VERSION\n";' CGI version 3.12 required--this is only version 3.11 at -e line 1. BEGIN failed--compilation aborted at -e line 1. $ perl -mstrict -we 'use File::Copy::Recursi