Re: items in array

2008-05-14 Thread Gunnar Hjalmarsson
[ Please do not top-post! ] Tech list wrote: Dr.Ruud wrote: "Li, Jialin" schreef: On Wed, May 14, 2008 at 4:01 PM, Tech list <[EMAIL PROTECTED]> wrote: what is the correct way to get the number of items in an array? I used to use $#array $#array is the index of the last item, so the number

Re: items in array

2008-05-14 Thread Tech list
Is $#array deprecated or not? On May 14, 2008, at 5:35 PM, Dr.Ruud wrote: "Li, Jialin" schreef: On Wed, May 14, 2008 at 4:01 PM, Tech list <[EMAIL PROTECTED]> wrote: what is the correct way to get the number of items in an array? I used to use $#array -- To unsubscribe, e-mail: [EMAIL PRO

Re: items in array

2008-05-14 Thread Dr.Ruud
"Li, Jialin" schreef: > On Wed, May 14, 2008 at 4:01 PM, Tech list > <[EMAIL PROTECTED]> wrote: > >> what is the correct way to get the number of items in an array? >> >> I used to use $#array >> >> >> -- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTEC

Re: items in array

2008-05-14 Thread Levente Kovacs
On Wed, 14 May 2008 16:01:54 -0500 Tech list <[EMAIL PROTECTED]> wrote: > what is the correct way to get the number of items in an array? > > I used to use $#array scalar(@array) -- Levente Kovacs <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: items in array

2008-05-14 Thread Li, Jialin
On Wed, May 14, 2008 at 4:01 PM, Tech list <[EMAIL PROTECTED]> wrote: > what is the correct way to get the number of items in an array? > > I used to use $#array > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > >