[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] gmtime format in array variable



At 5:24 PM -0500 12/7/00, Ronald J Kimball wrote:
>On Thu, Dec 07, 2000 at 04:25:59PM -0500, Paul Schinder wrote:
>>  At 3:45 PM -0500 12/7/00, Mike Hyslop wrote:
>>  >
>>  >#set array for file to copy
>>  >use Time::gmtime;
>>  >$tm3 = gmtime();
>>  >@ftc =
>>  >("m",($tm3->year+1900,$tm3->mon)+1,($tm3->mday),($tm3->hour-1),(".gz"));
>>  >print @ftc;
>>  >printf("\n");
>>
>>  This is Perl, not C.  gmtime returns a list in array context or a
>>  single string in scalar context, not a structure pointer.  If you use
>>  Shuck to look up gmtime, you find this:
>
>You overlooked the line
>
>use Time::gmtime;

You're right, I did.  Forget what I said.


>
>Ronald

-- 
--
Paul Schinder
schinder@pobox.com

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org