On Feb 4, R. Joseph Newton said:
>Jeff 'japhy' Pinyan wrote:
>
>> On Feb 4, Zysman, Roiy said:
>>
>> >Why does the command 'print (localtime(time))[4];' does not work
>>
>> Others (like Jenda) have already told you. Here is one solution:
>>
>> print +(localtime)[4];
>>
>> You don't need to use
Jeff 'japhy' Pinyan wrote:
> On Feb 4, Zysman, Roiy said:
>
> >Why does the command 'print (localtime(time))[4];' does not work
>
> Others (like Jenda) have already told you. Here is one solution:
>
> print +(localtime)[4];
>
> You don't need to use time(), by the way -- it's the default argume
On Feb 4, Zysman, Roiy said:
>Why does the command 'print (localtime(time))[4];' does not work
Others (like Jenda) have already told you. Here is one solution:
print +(localtime)[4];
You don't need to use time(), by the way -- it's the default argument to
localtime().
--
Jeff "japhy" Pinya
From: [EMAIL PROTECTED]
>
> On Tue, 4 Feb 2003 18:51:16 +0200 , "Zysman, Roiy"
> <[EMAIL PROTECTED]> wrote:
>
> > Hi All
> > Why does the command 'print (localtime(time))[4];' does not work And
> > the following 2 lines do work '[my $temp = (localti
Roiy Zysman wrote:
> Hi All
> Why does the command 'print (localtime(time))[4];' does not work
> And the following 2 lines do work
> '[my $temp = (localtime(time))[4];
> Print $temp;'
It pretty much tells you why when you compile it:
print (...) interpreted as function at E:\Perl\source\xx.pl
On Tue, 4 Feb 2003 18:51:16 +0200 , "Zysman, Roiy" <[EMAIL PROTECTED]> wrote:
> Hi All
> Why does the command 'print (localtime(time))[4];' does not work
> And the following 2 lines do work
> '[my $temp = (localtime(time))[4];
> Print $temp;'
>
>