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
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!