in reply to CGI::Carp set_message

Try using a closure:
my $self = something; set_message( sub { $self->handle_errors(@_) } );
-- Joost downtime n. The period during which a system is error-free and immune from user input.

Replies are listed 'Best First'.
Re: Re: CGI::Carp set_message
by hakkr (Chaplain) on Jul 30, 2002 at 09:26 UTC
    Thank you Joost, that works a treat and it's doubtful I would ever of got to that. I did't exactly see a flood of answers for this one so I guess it must of been a tough question.