in reply to Installing DateTime

Do a perlbrew switch perl-5.16.3, and then call perl -v. You should now be running 5.16.3.

Then, cpanm DateTime, then, try running your script with the perl command: perl script.pl. Does that work?

Out of curiosity, why is it you're using 5.16? FYI, 5.24 is the most recent version.

Replies are listed 'Best First'.
Re^2: Installing DateTime
by dotykg (Novice) on Oct 28, 2016 at 18:04 UTC

    Thanks to you everything now works fine. It was the perlbrew switch part that I had missed. The only reason for using version 5.16.3 is that is the version my IT folks are using. Now that I know how do this I can update! Again thanks for the help. Kevin Doty