[mplspm]: How to overload $!

Mark Allen mark.allen at shavlik.com
Thu Apr 29 14:48:15 CDT 2004


Awww, well. Fine.

I made $Foo::error instead, in Foo.pm. :P 

Gets annoying having to remember all the namespaces which declare their
own errors... but it sounds like there might be something better in Perl
6 (or 5.10 or whatever :-).

Thanks for the note.

--Mark

-----Original Message-----
From: owner-mpls at pm.org [mailto:owner-mpls at pm.org] On Behalf Of John J.
Trammell
Sent: Thursday, April 29, 2004 2:01 PM
To: mpls at pm.org
Subject: Re: [mplspm]: How to overload $!

On Thu, Apr 29, 2004 at 01:23:11PM -0500, Mark Allen wrote:
> I have some LWP::UserAgent code in a module where I'd like to overload

> $! on failure.

Looks like you're out of luck; see thread at

  http://aspn.activestate.com/ASPN/Mail/Message/perl5-porters/2051529

JT

--
Rule #0: Spam is theft.
Rule #1: Spammers lie.
Rule #2: If a spammer seems to be telling the truth, see Rule #1.
Rule #3: Spammers are stupid.


--------------------------------------------------
Minneapolis Perl Mongers mailing list

To unsubscribe, send mail to majordomo at pm.org
with "unsubscribe mpls" in the body of the message.



--------------------------------------------------
Minneapolis Perl Mongers mailing list

To unsubscribe, send mail to majordomo at pm.org
with "unsubscribe mpls" in the body of the message.



More information about the Mpls-pm mailing list