Re: recognizing static or instance call

2006-01-07 Thread lars
Hi, > if ( ref $self ) { thanks to Todd and JupiterHost - that was quick and helpful! Lars -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: recognizing static or instance call

2006-01-07 Thread JupiterHost.Net
lars wrote: Hi, Hello, I am writing a package with some subs. One of these subs can be called for an instance of the object ($obj->get_defaults()) or as a static sub (Example::Package->get_defaults()). The behaviour of the sub depends on the kind of call. The following code accomplishes thi

Re: recognizing static or instance call

2006-01-07 Thread Todd W
"lars" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I am writing a package with some subs. One of these subs can be called for an > instance of the object ($obj->get_defaults()) or as a static sub > (Example::Package->get_defaults()). > The behaviour of the sub depends on th