in reply to version reporting beyond print "$]\n";

Dunno if this is better but still
$a=`perl -v` ##or `perl -V` print $a


Manav