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

Re: [MacPerl] gmtime format in array variable



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;


Ronald

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