Re: PL/Perl Does not Like vstrings

From: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PL/Perl Does not Like vstrings
Date: 2012-01-05 21:47:58
Message-ID: 50B66A85-40B8-47C4-AE1D-054F23C46A40@justatheory.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Jan 5, 2012, at 9:55 AM, Andrew Dunstan wrote:

> perldoc perlvar says:
>
> The revision, version, and subversion of the Perl interpreter,
> represented as a "version" object.
>
> This variable first appeared in perl 5.6.0; earlier versions of perl
> will see an undefined value. Before perl 5.10.0 $^V was represented
> as a v-string.
>
> I'm quite sure David isn't running on something older than 5.10.0.

Perl 5.14.2:

> perl -E 'say ref $^V'
version

Perl 5.12.4:

> perl -E 'say ref $^V'
version

Perl 5.10.1:

> perl -E 'say ref $^V'
version

Perl 5.8.9:

> perl -le 'print ref $^V'

Best,

David

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2012-01-05 22:06:54 Re: [COMMITTERS] pgsql: Work around perl bug in SvPVutf8().
Previous Message Merlin Moncure 2012-01-05 20:45:26 Re: CLOG contention