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

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




returning to an old thread...


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


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

    our $VERSION = (qw$Revision: 1.10 $ )[-1];
    $ VERSION = eval "v$VERSION";
    # now it's the case that: ( v1.10 > v1.2 )
    # and it also holds that: ( v1.10 > v1.1 )

-matt

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