Thread OOP und Klassenvariablen (12 answers)
Opened by pktm at 2008-03-31 19:24

moritz
 2008-03-31 19:51
#107677 #107677
User since
2007-05-11
923 Artikel
HausmeisterIn
[Homepage]
user image
Da steht was in perlobj dazu:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
       VERSION( [NEED] )
"VERSION" returns the version number of the class (package). If
the NEED argument is given then it will check that the current ver‐
sion (as defined by the $VERSION variable in the given package) not
less than NEED; it will die if this is not the case. This method
is normally called as a class method. This method is called auto‐
matically by the "VERSION" form of "use".

use A 1.2 qw(some imported subs);
# implies:
A->VERSION(1.2);

View full thread OOP und Klassenvariablen