$ #/* Get module version number */ $ export module='JSON::PP'; perl -M$module -e 'print eval("\$".$ENV{module}."::VERSION")' $ 4.04
In reply to Indirect variable expansion by mvanle