Howdy,

On Mon, Feb 22, 2010 at 12:07 PM, Tom Lane <t...@sss.pgh.pa.us> wrote:
> Alex Hunsaker <bada...@gmail.com> writes:
>> On Mon, Feb 22, 2010 at 10:57, Jonathan <jonat...@leto.net> wrote:
>>> This is perl 5, version 11, subversion 4 (v5.11.4-114-ga4cc961*) built for
>>> x86_64-linux
>
> Ugh.  Can't they manage to keep that message reasonably consistent?

The form of the version string is the closest release version
(5.11.4), the number of commits ahead of that (114) and the SHA1 of
the actual commit. What flavor of consistency are you looking for?

>
>> !   perl_version_error=`$PERL -e 'use 5.00801;' 2>&1`
>
> This is not a path towards an acceptable solution, as it effectively
> assumes what we are setting out to prove, namely that we have found
> a reasonably modern version of perl.  Try it in perl 4...

These words don't seem to make sense. Can you translate? The the code
that Tim suggested is the most succinct way to ask Perl if it is at
least a certain minimum version, instead of inspecting the output of
"perl -v" and performing voodoo.

>
>                        regards, tom lane
>

In short, +1 to Tim's suggestion.


-- 
Jonathan "Duke" Leto
jonat...@leto.net
http://leto.net

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Reply via email to