Does the executable have a -v (version) option available when run from the command line?
If so, the backticks operator could capture the output. For example:
use strict; use warnings; my $output = `perl -v`; print "Here's the version info:\n$output\n";
Update:The question you posted to StackOverflow yielded a similar response among the meta-conversation.
Dave
In reply to Re: Get file version information in Perl
by davido
in thread Get file version information in Perl
by salem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |