Do you know where your variables are? | |
PerlMonks |
indirect object in camel bookby Anarion (Hermit) |
on Oct 05, 2001 at 20:26 UTC ( [id://117035]=perlquestion: print w/replies, xml ) | Need Help?? |
Anarion has asked for the wisdom of the Perl Monks concerning the following question:
In the Camel Book, the third edition and i found this: " 12.3 use ElvenRing; require ElvenRing; Either of these declarations ensures that Perl knows ElvenRing is a module name, which forces any bare name like new before the class name ElvenRing to be interpreted as a method call, even if you happen to have declared a new subroutine of your own in the current package. People don't generally get into trouble with indirect objects unless they start cramming multiple classes into the same file, in which case Perl might not know that a particular package name was supposed to be a class name. People who name subroutines with names that look like ModuleNames also come to grief eventually. " Well, try this:
What is this, another book bug? or its a perl problem, because if i dont use a typeglob on the prototype it works ... $anarion=\$anarion; s==q^QBY_^=,$_^=$[x7,print
Back to
Seekers of Perl Wisdom
|
|