On Fri, 9 Aug 2002, Larry Wall wrote:
> (Had an interesting typo there.  I put => insteaqd of ->.  I wonder
> how much trouble that sort of thing is gonna cause.  Maybe pairs
> can be disallowed or warned about where a pointy sub might be
> expected.)

To add to the list of helpful warnings, I ran across the following
"thinko":

    for ($x = 0; $x < 23; $x++) { ... }

which (I believe) is a legitimate for-loop across a multidimensional array
literal:

    for (...) -> $_ { ... }

but almost always means

    loop (...) { ... }

We need to make a list of these.

/s

Reply via email to