[Pdx-pm] Austin's $VERSION trick

Eric Wilhelm ewilhelm at sbcglobal.net
Fri Jul 15 16:01:05 PDT 2005


# from Eric Wilhelm
# on Friday 15 July 2005 03:51 pm:

>$VERSION = $Hello::World::Version || require(Hello::World::Version);

Oops.  Don't put those parentheses in there when running under strict.

our $VERSION = $Hello::World::Version || require Hello::World::Version;

--Eric
-- 
"I've often gotten the feeling that the only people who have learned
from computer assisted instruction are the authors."
--Ben Schneiderman
---------------------------------------------
    http://scratchcomputing.com
---------------------------------------------


More information about the Pdx-pm-list mailing list