[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Elegant ways to pick up the RCS revision



>>>>> "Matthew" == Matthew Wickline <listbox@wickline.org> writes:

Matthew> returning to an old thread...


Matthew> merlyn@stonehenge.com (Randal L. Schwartz) wrote:
>> $VERSION = (qw$Revision: 1.34 $ )[-1]


Matthew> this topic later came up on the dbi user's list, and Jonathan Leffler
Matthew> came up with the following tweak (in an off-list message)...

Matthew>     our $VERSION = (qw$Revision: 1.10 $ )[-1];

Won't fly on 5.5.3, which many people have installed still.

Matthew>     $ VERSION = eval "v$VERSION";

Nor does this.

The world is not at 5.6.x yet.  Please try to stick to portable
constructs for at *least* the next year.

Matthew>     # now it's the case that: ( v1.10 > v1.2 )
Matthew>     # and it also holds that: ( v1.10 > v1.1 )

Whatever.  Useless prior to 5.6.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe