Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Detecting if Perl is installed and which version

by inman (Curate)
on Mar 24, 2006 at 14:58 UTC ( #539043=note: print w/ replies, xml ) Need Help??

in reply to Detecting if Perl is installed and which version

If I understand your question, you are wanting to detect the presence of the perl.exe executable and then perform an unattended execution of Perl if you don't find one. This should just be a case of trying a command like perl -v and seeing if it executes (in which case, you can test the version) or install a new version.

The perl.exe location depends on the installation tool that you are using. This doc on unattended installations may be of interest when it comes to adding ActiveState Perl since it uses it as an example.

Comment on Re: Detecting if Perl is installed and which version
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://539043]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2015-11-30 05:00 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (758 votes), past polls