On Wed, Jun 21, 2000 at 01:51:05PM +0100, 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...
sorry, that was the fixed one. the original one was missing the
text " < 5". bummer.
the scalar just makes things a bit clearer.
kevin
--
kevin at suberic.net "we were goin' for breakfast. in canada. we
fork()'ed on 37058400 made a deal: if she'd stop hookin', i'd stop
meatspace place: home shootin' people. maybe we were aiming high."
--porter, "payback"
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!