in reply to 'while', 'foreach' not in perlfunc

while and foreach and syntax, not functions. grep and map are also, technically, syntax, but they behave like functions. while and foreach do not, so they aren't documented in the same place.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Re^2: 'while', 'foreach' not in perlfunc
by duelafn (Parson) on Jun 13, 2008 at 20:50 UTC

    Yeah, though it would be nice if perldoc -f word worked for any perl keyword.

    Good Day,
        Dean

      perlbug still works, as does supplying patches to p5p.

      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?