Why not - it seems to function quite well - same as any other fetched
variable.

 -----Original Message-----
From:   Dan Sugalski [mailto:[EMAIL PROTECTED]] 
Sent:   Sunday, January 20, 2002 7:04 PM
To:     Stanley, Jack; 'Daniel Shane'
Cc:     '[EMAIL PROTECTED]'
Subject:        RE: How to return an error in $!?

At 4:48 PM -0600 1/20/02, Stanley, Jack wrote:
>I have looked everywhere on the web and I cannot find an example of
>returning an error string in $! in my XS extention. Does somebody know how
>to do this?

You really can't--$! is a magic variable, and you can't override its 
magic like that. $! only gets system errno codes, and prints the 
corresponsing errno messages when stringified.
-- 

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                       teddy bears get drunk

Reply via email to