Let the shell do the interpolation for you:
$ export module='JSON::PP'; perl -M$module -e "print \$$module::VERSIO +N . qq/\n/" 4.06
🦛
In reply to Re: Indirect variable expansion
by hippo
in thread Indirect variable expansion
by mvanle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |