Perl: the Markov chain saw | |
PerlMonks |
Re: Problems with looping through an arrayby davis (Vicar) |
on May 27, 2004 at 10:33 UTC ( [id://356854]=note: print w/replies, xml ) | Need Help?? |
I'm not too sure what your code is supposed to be doing. It looks a bit like you're trying to count the number of times a particular value occurs in an array. The normal way of doing this is to use a hash:
But you might be trying to do something more complicated than that. Some more explanation of what you're trying to achieve would help davis
It's not easy to juggle a pregnant wife and a troubled child, but somehow I managed to fit in eight hours of TV a day.
In Section
Seekers of Perl Wisdom
|
|