Re: Subscript question

2003-02-04 Thread Jeff 'japhy' Pinyan
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

Re: Subscript question

2003-02-04 Thread R. Joseph Newton
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

Re: Subscript question

2003-02-04 Thread Jeff 'japhy' Pinyan
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

RE: Subscript question

2003-02-04 Thread Jenda Krynicky
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

Re: Subscript question

2003-02-04 Thread Rob Dixon
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

RE: Subscript question

2003-02-04 Thread wiggins
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;' > >