Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Checking Perl version

by bigj (Monk)
on Jul 08, 2003 at 13:27 UTC ( [id://272271]=note: print w/replies, xml ) Need Help??


in reply to Checking Perl version

You can check the $] variable. Please read perldoc perlvar for details. It would look like:
if ($] < 5.006001) {
    die "You don't have a current version of Perl";
}

Greetings,
Janek

Replies are listed 'Best First'.
Re: Re: Checking Perl version
by Anonymous Monk on Jul 08, 2003 at 14:22 UTC
    thanks. This:
    if ($] < 5.006001) { die "You don't have a current version of Perl"; }
    didnt work for me for some reason. I checked perldocs and it seems this is the way to do it but for some reason it doesnt check my perl version.

      What does perl -v show? That should tell you what's going on.

      --t. alex
      Life is short: get busy!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 04:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found