Perl version 5.006001

G

Guy

I am using Perl scripts on a remote (web) server, and I'm just curious what
version of Perl the server has. I would do a Perl -v if I had access to its
command prompt, but I don't. So I ran the following scripts and it spit out
5.006001. Have there been many upgrades since? It's not my server so I
wouldn't be able to upgrade it anyway. But I'm just wondering if I would be
missing out of major things?
Guy

#!/usr/bin/perl
$command= $];
$title = "Perl Version";

print "Content-type: text/html\n\n";
print "<html><head><title>$title</title></head><body>";

print "<h1>$title</h1>\n";
print "Perl version : ".$command;
 
T

Tad J McClellan

Guy said:
I am using Perl scripts on a remote (web) server, and I'm just curious what
version of Perl the server has. I would do a Perl -v if I had access to its
command prompt, but I don't. So I ran the following scripts


If you can run scripts (CGI, I assume) then you _do_ have access
to a shell (command line);

#!/usr/bin/perl
print "Content-type: text/plain\n\n";
system 'perl -v';

:)

and it spit out
5.006001. Have there been many upgrades since?


A whole boatload of them.

perldoc perlhist

shows that 5.6 was released many years ago:

5.6.0 2000-Mar-22
...
5.6.1 2001-Apr-08

A lot has happened in 8 years...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top