develooper Front page | perl.perl5.porters | Postings from March 2006

[PATCH] Add V.pm to the core

Thread Next
From:
Abe Timmerman
Date:
March 31, 2006 08:35
Subject:
[PATCH] Add V.pm to the core
Message ID:
200603311834.59484.abe@ztreet.demon.nl
Hi all,

Merijn asked me to provide a patch that adds V.pm to the core.

V.pm was written in response to a question Tels asked back in Jan. 2002...

NAME
    V - Print version of the specified module(s).

SYNOPSIS
        $ perl -MV=V

    or if you want more than one

        $ perl -MV=CPAN,V

    Can now also be used as a light-weight module for getting versions of
    modules without loading them:

        BEGIN { $V::NO_EXIT = 1 }
        require V;

        printf "%s has version '%s'\n", "V", V::get_version( "V" );

Have fun +
Good luck,

Abe
-- 
Let's not cloud the issue with facts, shall we?
                                   -- Jarkko Hietaniemi on p5p @ 2003-05-02

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About