2013-06-04T10:33:04 GwenDragonich nehme aus Gewohnheit $VERSION weil manche Packages kein version() oder VERSION() drin haben, ist hier natürlich anders.
QuoteOder warum sollte eine die OO-Notation nehmen? Gibt's dafür Gründe?
1
2
3
4
5
6
7
8
9
$ perl -wE'
package Foo;
$VERSION = v102.111.111;
package main;
say "\$Foo::VERSION = $Foo::VERSION";
say "Foo->VERSION = " . Foo->VERSION;
'
$Foo::VERSION = foo
Foo->VERSION = v102.111.111
QuoteAll classes inherit from the UNIVERSAL class implicitly. The UNIVERSAL class is implemented by the Perl core, and provides several default methods, such as isa() , can() , and VERSION() . The UNIVERSAL class will never appear in a package's @ISA variable.