Question : how could that be fixed

this result is shifting a whole month back from today
right now the elements of the time are:2 24 11 8 5 109 1 158 0
can you please tell me what to do since the calendar is saying the month is june

best regards
hatem gamal
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
#! /opt/lampp/bin/perl -wT
use CGI::Carp qw/fatalsToBrowser warningsToBrowser/;
use strict;
use CGI':standard';
 
 
 
#$form=new CGI;
print header(), start_html();
#print "";
#print "";
#print qq**;
#print "";
 
warningsToBrowser(1);
my @time= gmtime;
 
print "";
 
print "

right now the elements of the time are:@time
"; print ""; print "";

Open in New Window Select All

Answer : how could that be fixed

sorry forget about my question above.
In fact localtime (as well as gmtime) will start counting the month from "0" so "5" is June.
Random Solutions  
 
programming4us programming4us