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

[PATCH] Add to the core

Thread Next
Abe Timmerman
March 31, 2006 08:35
[PATCH] Add to the core
Message ID:
Hi all,

Merijn asked me to provide a patch that adds to the core. was written in response to a question Tels asked back in Jan. 2002...

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

        $ 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,

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

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About