drecaise has asked for the wisdom of the Perl Monks concerning the following question:
In the above example I'd like to get rid of the @lt variable and call localtime() directly from strftime(). Thing is that I don't know how to call it in a way that will return an array. I've been fiddling with it but couldn't figure out how this is done.#!/usr/bin/perl -w use strict; use warnings; use Date::Format; my @lt = localtime(); my $timestring = strftime('%c', @lt);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to use localtime() in another function ( in list context)
by GrandFather (Saint) on Feb 03, 2011 at 08:25 UTC | |
by drecaise (Initiate) on Feb 03, 2011 at 08:30 UTC | |
|
Re: How to use localtime() in another function ( in list context)
by ikegami (Patriarch) on Feb 03, 2011 at 09:11 UTC | |
|
Re: How to use localtime() in another function ( in list context)
by jwkrahn (Abbot) on Feb 03, 2011 at 09:56 UTC |