Thanks & Regards in advance
Anirban Adhikary
You can do:
perl -MDBI -e "print $DBI::VERSION;"
or shorter:
perl -M"DBI 999" -e1
which will give an error telling that this is a lower version of DBI than the one requested and it will also give the version.
If you do it under Unix/Linux, use ' instead of ".
Octavian
Thanks & Regards in advance
Anirban Adhikary.
Thanks & Regards in advance
Anirban Adhikary.
When you put a string between ''s , no kind of shell variable expansion
is done. The string is passed exactly as it is. Where as text inside
"" are subject to different kinds of expansions/replacements, etc..
So for your particular case.. I guess you need
perl -MDBI -e 'print $DBI::VERSION;'
becasue if you write
perl -MDBI -e "print $DBI::VERSION;"
it will interpret $DBI as a shell variable. If I am not wrong, $DBI is
empty in your shell. And thus your command becomes
perl -MDBI -e 'print ::VERSION;'
before it gets called.
--
Laxminarayan G Kamath A
http://lankerisms.blogspot.com
http://kamathln.homelinux.net (avail if my laptop is online)