[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] using Time::localtime in perl
- Subject: [ale] using Time::localtime in perl
- From: tj at atlantageek.com (Tommie M. Jones)
- Date: Mon, 4 Feb 2002 14:15:58 -0500 (EST)
>
> >
> > why do $realaccess and $realcreate get values like
> >
> > Time::tm=ARRAY(0x81b1a78)?
It's a reference to an array.
According to 'perldoc Time::tm'
--SNIP--
This module is used internally as a base class by
Time::localtime And Time::gmtime functions. It creates a
Time::tm struct object which is addressable just like's
C's tm structure from time.h; namely with sec, min, hour,
mday, mon, year, wday, yday, and isdst.
This class is an internal interface only.
--SNIP
So if you want to access the second element you can go
print $realaccess->[4];
or
print @$realaccess[4];
which if I am reading the documentation correctly
should be the month.
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.