$! vs. some other variable isn't very important, as long as whatever
you use is unset when calls succeed.

You also have the option of using exceptions to signal errors, but it
looks like you've already decided not to use those.

On Jan 6, 2008 12:52 AM, Shmuel Fomberg <[EMAIL PROTECTED]> wrote:
> Hi All.
>
> Thanks for all that helped me.
>
> I have a question. In the API that I made, when a call fails the function
> returns undef. And then the return code is stored in $! and detailed message
> is stored in [EMAIL PROTECTED]
> Would it make more sense the store the RC in $! and the detailed message to
> be retrived using some $obj->LastError() or something like that?
> What would you do?
>
> Thanks,
> Shmuel.
>
> _______________________________________________
> Perl mailing list
> [email protected]
> http://perl.org.il/mailman/listinfo/perl
>



-- 
Gaal Yahas <[EMAIL PROTECTED]>
http://gaal.livejournal.com/
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl

Reply via email to