in reply to Re^2: Primes. Again.
in thread Primes. Again.
Not obnoxious at all! Healthy curiosity from a Perl newbie I'd have said.
next is a statement used inside a loop to say "skip the rest of the loop code and start the next itteration".
next if ! length $_;
is a next statement that is modified by an if. It is only executed if the if condition is true.
join concatenates the elements of a list together using the string supplied between each pair of elements.
grep filters a list of elements and only returns the list of elements for which the condition (in {} brackets) evaluates true.
Note that this is a very quick introduction to these concepts. I expect you will take a trawl through the tutorials section now looking for next, last, redo, join, grep, map and modifiers.
You should look for those key words in The Camel too.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Primes. Again.
by Andrew_Levenson (Hermit) on Apr 26, 2006 at 15:47 UTC | |
by GrandFather (Saint) on Apr 26, 2006 at 21:06 UTC |