At 09:22 AM 8/1/01 +0800, you wrote:
>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?

'Cos Windows and Unix command line shells use different quoting:

$ perl -MCGI -le 'print $CGI::VERSION'
2.752

Hey, lookitthat, my Unix box is more up to date.  Quel surprise :-)

3.02?  Where did you get your CGI.pm from?
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com


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

Reply via email to