Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 674981337B68 for ; Tue, 3 May 2011 21:02:15 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 36662-10 for ; Wed, 4 May 2011 00:02:07 +0000 (UTC) X-Greylist: delayed 00:21:28.975438 by SQLgrey-1.7.6 Received: from mail.endcrypt.com (mail.endcrypt.com [74.205.105.202]) by mail.postgresql.org (Postfix) with ESMTP id C09441337A5D for ; Tue, 3 May 2011 21:02:05 -0300 (ADT) Received: from core.home (pool-96-227-80-201.phlapa.fios.verizon.net [96.227.80.201]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.endcrypt.com (Postfix) with ESMTP id 4414931247; Tue, 3 May 2011 23:40:36 +0000 (UTC) Date: Tue, 3 May 2011 19:40:34 -0400 From: Greg Sabino Mullane To: pgsql-bugs@postgresql.org Subject: Plperl trigger variables no longer global Message-ID: <20110503234033.GE2701@core.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="sDKAb4OeUBrWWL6P" Content-Disposition: inline X-PGP-Key: http://www.gtsm.com/Greg_Sabino_Mullane.key.html User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201105/8 X-Sequence-Number: 30147 --sDKAb4OeUBrWWL6P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This works in 9.0 but not in git/9.1 beta: CREATE FUNCTION wheredidmytdgo() RETURNS TRIGGER LANGUAGE plperlu AS $bc$ use strict; use warnings; my $new =3D $_TD->{new}; return; $bc$; The error is: ERROR: Global symbol "$_TD" requires explicit package name at line 3. CONTEXT: compilation of PL/Perl function "wheredidmytdgo" --=20 Greg Sabino Mullane greg@endpoint.com End Point Corporation PGP Key: 0x14964AC8 --sDKAb4OeUBrWWL6P Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iEYEAREDAAYFAk3AknEACgkQvJuQZxSWSsgddQCg0RjI+W11UkrqKgxRvIZhXsNT 5aQAmwe5M0OuSRU8GUI3tEf7yXoXOroD =irbP -----END PGP SIGNATURE----- --sDKAb4OeUBrWWL6P--