[ILUG] Recommended: gnome-terminal
McDaid, Aaron
Aaron.McDaid at compaq.com
Wed Jun 21 16:47:38 IST 2000
Fergal Daly wrote:
> At 13:33 21/06/00, kevin lyda wrote:
> >[0] this is a bad thing[1][2] to do:
> > while (scalar(@timers) < 5) {
> > push(@timers, 0);
> > }
>
> I'm preparing myself to be embarrassed but I can't see nowt
> wrong with that
> and when I ran it just created an array of 5 0s. The only
> thing I could
> spot was the unnecessary use of scalar...
Could be:
@timers = (5) x @timers ; #set all elements to 5
from the perlop man page
More information about the ILUG
mailing list