From mboxrd@z Thu Jan 1 00:00:00 1970 From: merlyn@stonehenge.com (Randal L. Schwartz) Subject: Re: [PATCH] Eliminate Scalar::Util usage from private-Error.pm Date: 10 Jul 2006 18:40:48 -0700 Message-ID: <867j2knckf.fsf@blue.stonehenge.com> References: <20060710130046.GW29115@pasky.or.cz> <20060711005354.5911.62525.stgit@machine.or.cz> <86bqrwncnq.fsf@blue.stonehenge.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Junio C Hamano , X-From: git-owner@vger.kernel.org Tue Jul 11 03:41:04 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G07FA-0000EJ-3C for gcvg-git@gmane.org; Tue, 11 Jul 2006 03:40:56 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964820AbWGKBku (ORCPT ); Mon, 10 Jul 2006 21:40:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965048AbWGKBku (ORCPT ); Mon, 10 Jul 2006 21:40:50 -0400 Received: from blue.stonehenge.com ([209.223.236.162]:31086 "EHLO blue.stonehenge.com") by vger.kernel.org with ESMTP id S964820AbWGKBkt (ORCPT ); Mon, 10 Jul 2006 21:40:49 -0400 Received: from localhost (localhost [127.0.0.1]) by blue.stonehenge.com (Postfix) with ESMTP id 664608D526; Mon, 10 Jul 2006 18:40:49 -0700 (PDT) Received: from blue.stonehenge.com ([127.0.0.1]) by localhost (blue.stonehenge.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00661-01-60; Mon, 10 Jul 2006 18:40:48 -0700 (PDT) Received: by blue.stonehenge.com (Postfix, from userid 1001) id D97298D560; Mon, 10 Jul 2006 18:40:48 -0700 (PDT) To: Petr Baudis x-mayan-date: Long count = 12.19.13.8.4; tzolkin = 1 Kan; haab = 17 Tzec In-Reply-To: <86bqrwncnq.fsf@blue.stonehenge.com> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: >>>>> "Randal" == Randal L Schwartz writes: Randal> sub blessed { Randal> my $item = shift; Randal> local $@; # don't kill an outer $@ Randal> ref $item and eval { $item->can('can') }; Randal> } Oops, lose the local $@ line. Just found out this is a broken thing in current Perls. The rest is good though. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!