--- Perrin Harkins <perrin at elem.com> wrote:
> On Wed, 2004-10-27 at 13:20, Peter Speltz wrote:
> > my $class = ref $self || $self; # This could be significant ??
>
> Yes. When it worked, you were passing a ref. Now you're passing a
> class name.
OK. Is this a problem of context which it is called in (my guess) or the way a
sub is constructed?
>Presumably this is because you were calling something
> higher up the chain as an object method before and are now calling it as
> a class method.
Excuse my ignorance but,
Could you explain this a little more? I'm cofused a little why it matters if
it calls it as a class method or an object method. This sub just returns a hash
ref.
I'm starting to think it may have something to do with the subtlties of
references. Like maybe saying IF (Class->has_a_new) won't work but saying If
($obj->has_a_new) will work. Am i getting warmer?
or maybe i need a "no strict 'refs' statement somewhere?
thanks.
> _______________________________________________
> maypole mailing list
> maypole at lists.netthink.co.uk
> http://lists.netthink.co.uk/listinfo/maypole
>
=====
pjs
__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now.
http://messenger.yahoo.com
_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT