>>>>> "Drieux" == Drieux  <[EMAIL PROTECTED]> writes:

Drieux>         if ( ref($got_back) eq "Foo::Bar")

No no no.  Stop using ref().  It means you can't replace it
with a subclass of it.

You want (and I show in my still-hidden article);

        if (UNIVERSAL::isa($got_back, "Foo::Bar")) { ... }

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to