[ale] using Time::localtime in perl
    Ben Coleman 
    oloryn at benshome.net
       
    Mon Feb  4 13:05:49 EST 2002
    
    
  
On Mon, 4 Feb 2002 12:42:39 -0500 (EST), Jerry Z. Yu wrote:
>	localtime will return an array, unless you cast it to a string by
>'scalar' operator or implicitly uses it in a scalar environment.
Actually, he *is* using it in a scalar environement:
#	my $realaccess = localtime($access);
The trick is, he's not using the standard Perl localtime.  He's using
the Time::localtime module, which replaces the standard Perl localtime
with one that returns Time::tm objects.  David, you'd be better off
using the standard Perl localtime than using Time::localtime.
Ben
-- 
Ben Coleman oloryn at benshome.net      | The attempt to legislatively
http://oloryn.home.mindspring.com/   | micromanage equality results, at
Amateur Radio NJ8J                   | best, in equal misery for all.
---
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.
    
    
More information about the Ale
mailing list