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!