Re: `$#array` vs `scalar @array`

2018-01-29 Thread Chas. Owens
t; > > > For the following two expressions, are they of the same speed or one > > > of them is faster? > > > > > > `$#array` vs `scalar @array` > > -- > Paul Johnson - p...@pjcj.net > http://www.pjcj.net >

Re: `$#array` vs `scalar @array`

2018-01-29 Thread Paul Johnson
2018, 13:39 Peng Yu wrote: > > > Hi, > > > > For the following two expressions, are they of the same speed or one > > of them is faster? > > > > `$#array` vs `scalar @array` -- Paul Johnson - p...@pjcj.net http://www.pjcj.net -- To unsubscribe, e-mail: beginner

Re: `$#array` vs `scalar @array`

2018-01-28 Thread Chas. Owens
the last index you would need to say @array - 1, which would make $#array faster. On Sun, Jan 28, 2018, 13:39 Peng Yu wrote: > Hi, > > For the following two expressions, are they of the same speed or one > of them is faster? > > `$#array` vs `scalar @array` > > -- >

`$#array` vs `scalar @array`

2018-01-28 Thread Peng Yu
Hi, For the following two expressions, are they of the same speed or one of them is faster? `$#array` vs `scalar @array` -- Regards, Peng -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/