On Tue, 31 Jul 2001, Peter Scott wrote:

> >How can you tell what version of a Perl Module you're using? i.e. CGI.pm

> print $<Module>::VERSION, e.g. (Windows example):

> C:>perl -MCGI -le "print $CGI::VERSION"
> 2.56

I couldn't get that to work, trying on the Linux command line:


[greg@localhost greg]$ perl -MCGI -le "print $CGI::VERSION"
[greg@localhost greg]$ perl -MCGI -le "print $VERSION"
[greg@localhost greg]$ perl -MCGI -le "print $main::VERSION"
[greg@localhost greg]$ perl "-MCGI qw(:standard)" -le "print
$CGI::VERSION"
[greg@localhost greg]$ perl '-MCGI qw(:all)' -le "print
$CGI::VERSION"
[greg@localhost greg]$ perl -MCGI=:all -le "print $CGI::VERSION"

even though in a cgi script, the line:

 print   $CGI::VERSION;

printed out 3.02. Why is that?

-- 
Greg Matheson                Practitioners just do it.
Chinmin College,             Reflective Practitioners just think they
Taiwan                       did it.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to