| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com> |
| Cc: | Alex Hunsaker <badalex(at)gmail(dot)com>, Jonathan <jonathan(at)leto(dot)net>, pgsql-bugs(at)postgresql(dot)org |
| Subject: | Re: BUG #5339: Version of Perl detected incorrectly |
| Date: | 2010-02-23 21:02:11 |
| Message-ID: | 15996.1266958931@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Tim Bunce <Tim(dot)Bunce(at)pobox(dot)com> writes:
> On Mon, Feb 22, 2010 at 04:31:05PM -0500, Tom Lane wrote:
>> I still think that this is optimizing the wrong thing. We care about
>> the clarity of the message the user sees, not about how short or clean
>> the Perl code is.
> There's no need to try to parse the perl -v output, which is intended
> for humans and may change in future. Using
> perl -e 'print $]'
will give you the version number in floating point format for all
versions of perl.
$ /usr/local/bin/perl4 -e 'print $]'
$RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $
Patch level: 36
I will refrain from further comment.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tim Bunce | 2010-02-23 22:21:20 | Re: BUG #5339: Version of Perl detected incorrectly |
| Previous Message | Tim Bunce | 2010-02-23 20:39:46 | Re: BUG #5339: Version of Perl detected incorrectly |