Thread Konstruktorverständnis (18 answers)
Opened by leo11 at 2009-06-27 21:01

LanX-
 2009-06-28 12:04
#122695 #122695
User since
2008-07-15
1000 Artikel
BenutzerIn

user image
2009-06-28T05:56:35 leo11
Was gibt ref($caller) jeweils zurück?


perldoc -f ref

Quote
Returns a non-empty string if EXPR is a reference¹, the empty string otherwise.
...

If the referenced object has been blessed into a package, then that package name is returned instead. You can think of ref as a typeof operator.


(1) bei einem Klassenaufruf wird der Klassenname als String resp. scalar übergeben.
Last edited: 2009-06-28 12:06:02 +0200 (CEST)

View full thread Konstruktorverständnis