Skip site navigation (1) Skip section navigation (2)

Re: plperl & sort

From: "Alex Hunsaker" <badalex(at)gmail(dot)com>
To: "Andrew Gierth" <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: plperl & sort
Date: 2008-11-05 18:28:50
Message-ID: 34d269d40811051028u2b794d8atbfc521eb598f568@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-bugs
On Wed, Nov 5, 2008 at 10:54, Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> wrote:
>>>>>> "nathan" == nathan wagner <nw(at)hydaspes(dot)if(dot)org> writes:
>
>  nathan> Completely untested speculation based on my knowledge of perl
>  nathan> and a bit of reading:
>
>  nathan> The reason you can't see $a and $b is that sort internally
>  nathan> sets these variables in the main package.  That is, sort is
>  nathan> setting $main::a and $main::b, and when you run the plperl
>  nathan> code in the safe compartment, main:: isn't visible any more.
>
> Nice theory, but completely wrong: sort creates $a and $b in the
> current package, not in main::.

current package is main ;)

In response to

pgsql-bugs by date

Next:From: Alex HunsakerDate: 2008-11-05 18:37:34
Subject: Re: plperl & sort
Previous:From: Tom LaneDate: 2008-11-05 18:14:20
Subject: Re: plperl & sort

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group