[Israel.pm] My CPAN module

Gaal Yahas gaal at forum2.org
Sat Jan 5 22:31:02 PST 2008


$! 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 <semuelf at 012.net.il> 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 $@.
> 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
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl
>



-- 
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/



More information about the Perl mailing list