on 03/15/2001 04:27 PM, Keary Suska at [EMAIL PROTECTED] wrote:

> sub new {
> my($class, $log_obj) = @_;
> my $obj = { log => $log_obj ...etc... };
> return bless $obj;
> }

This doesn't precisely answer your question, but...

always do 
    return bless $obj, $class; # this, straight from the OOP book.

Check out Damian Conway's "Object Oriented Perl" if you're looking to get in
deeper. 

It's hard to say where the error might be occurring, though, since we cannot
see the rest of your code. :)

-- 
Scott R. Godin            | e-mail : [EMAIL PROTECTED]
Laughing Dragon Services  |    web : http://www.webdragon.net/


Reply via email to