richard lavoie wrote:
Hi dear list, I'm trying to write a little script for calculation with time like adding a few minutes to a certain time. I'm getting this message: Time::Local version 1134653954 required--this is only version 1.1 at /usr/lib/perl5/5.8.6/Exporter/Heavy.pm line 121. BEGIN failed--compilation aborted at time.pl line 6. This is what I tried: #!/usr/bin/perl -w use lib "/WHATEVER/Time-Local-1.11/lib"; use Time::Local
use Time::Local; #--------------^ (look here) # Otherwise Perl tries to load the results # of the next statement as a subroutine
my $mytime = time; $mytime = 1; print "$mytime\n"; my @time = localtime($mytime); $zeit="$time[0]:$time[1]:$time[2]:$time[3]:$time[4]:$time[5]"; print "$zeit \n"; my $timestamp = timelocal(1,2,3,1,1,2); print "$timestamp\n"; Thanx in advance R.
-- Just my 0.00000002 million dollars worth, --- Shawn "Probability is now one. Any problems that are left are your own." SS Heart of Gold, _The Hitchhiker's Guide to the Galaxy_ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>