Re: [PATCH] Eliminate Scalar::Util usage from private-Error.pm
- From
Randal L. Schwartz <merlyn@stonehenge.com>
- Date
- Jul 11, 2006, 01:42 UTC
- Message-ID
- <863bd8nchg.fsf@blue.stonehenge.com>
- In-Reply-To
- <867j2knckf.fsf@blue.stonehenge.com>
>>>>> "Randal" == Randal L Schwartz <merlyn@stonehenge.com> writes:
>>>>> "Randal" == Randal L Schwartz <merlyn@stonehenge.com> writes:
Randal> sub blessed { Randal> my $item = shift; Randal> local $@; # don't kill an outer $@ Randal> ref $item and eval { $item->can('can') }; Randal> }
Randal> Oops, lose the local $@ line. Just found out this is a broken Randal> thing in current Perls. The rest is good though.
And thirdly, ignore what I *just* said, and concentrate on what I *previously* said, becaused my testing was off.
-- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <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!