~ $ export module='JSON::PP'; perl -M$module -e 'print ${$ENV{module}. +"::VERSION"}' 4.07~ $ ~ $
Next time please use code tags instead of pre .
Or just use the VERSION method
~ $ export module='JSON::PP'; perl -M$module -e 'print $ENV{module}->V +ERSION' 4.07~ $ ~ $
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
In reply to Re: Indirect variable expansion
by LanX
in thread Indirect variable expansion
by mvanle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |