Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Re: Re: Re: Re: where do you put your subsby Juerd (Abbot) |
on Mar 08, 2002 at 14:04 UTC ( [id://150318]=note: print w/replies, xml ) | Need Help?? |
Is this a scalar or a call to a class method with no paramaters? Let's sift through the code to find out, oh joy! Let's sift indeed: Ah, we're creating a lexically scoped scalar called $paco It has something to do with another scalar, called $foo The arrow indicates we're either going to dereference, or have method call. No [] or {}, so it's a method call. Neato, we're using objects! But we can't see whether $foo is a scalar holding a blessed reference (better known as object) or a scalar holding a package name. That's only because it's called $foo, because a good name would tell us. And do you really put package names in scalars and then use those to call class methods? It's ugly, just like using soft references.
In Section
Seekers of Perl Wisdom
|
|