Search the Site:

How to Find out what version of Perl you are running

Can you help me on how to find out what version of perl you are running.

Re: How to Find out what version of Perl you are running

Instructions to find out the version of Perl you are running

Just open the terminal/ command prompt/ console for your operating system and type the command:

perl -v

You should be able to see the version in the output that comes.

Re: How to Find out what version of Perl you are running

Instructions to Find out what version of Perl you are running using a CGI script

If your web hosting server provider does not provide access to a shell, you may use following perl program to find out perl version:


#!/usr/bin/perl
$command=`perl -v`;
print "Content-type: text/html\n\n";
print "<html><head><title>Perl Version</title></head><body>";
print "<h1>Perl Version</h1>\n";
print $command;
print "</body></html>";

Save the script as version.pl and upload it to your cgi-bin directory. Now execute script by typing url http://www.example.com/cgi-bin/version.pl

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <i> <object> <param> <embed> <blockquote>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

2 Steps to Post a New Problem

2 Steps to Post a New Problem

Register
Login
Post New Problem

DISCLAIMER: The content on the site has been submitted by the users. NibbleGuru.com has no responsibility other than in removing material from the website when we have been notified of a copyright violation. Notify here.