develooper Front page | perl.perl5.porters | Postings from January 2002

Re: perl -v -MSome::Module

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
January 15, 2002 14:48
Subject:
Re: perl -v -MSome::Module
Message ID:
20020115224837.GH17961@blackrider
On Tue, Jan 15, 2002 at 06:31:05PM +0100, Tels wrote:
> when I want to find out the version of something installed. So I thought it
> would be nice to have something along the lines:
> 
>         perl -v -MFoo::Bar
> 
> or
> 
>         perl -MFoo::Bar -v

Rather than a core hack, you could write a little V.pm module and then have:

    perl -MV=Foo::Bar

do whatever you like.

Or write a tiny little wrapper script and do:

    vof Foo::Bar


-- 

Michael G. Schwern   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl Quality Assurance	    <perl-qa@perl.org>	       Kwalitee Is Job One
Now I fight for wisdom.
	http://sluggy.com/d/010204.html

Thread Previous | 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