Perl version used when running the script

Perl version used when running the script

am 05.12.2007 06:36:05 von lfchew1

If I need to use a certain perl version only to run by script, is
there a way to check that before my script continue down the main body
of the code?
Or is there any way we can check the version?

Re: Perl version used when running the script

am 05.12.2007 06:55:00 von jurgenex

lfchew1@yahoo.com wrote:
> If I need to use a certain perl version only to run by script, is
> there a way to check that before my script continue down the main body
> of the code?

perldoc -f use

> Or is there any way we can check the version?

perldoc perlvar
and check for $^V

jue

Re: Perl version used when running the script

am 05.12.2007 08:34:04 von Ben Morrow

Quoth "Jürgen Exner" :
> lfchew1@yahoo.com wrote:
>
> > Or is there any way we can check the version?
>
> perldoc perlvar
> and check for $^V

$] is safer when dealing with potentially old perls.

Ben