in reply to Re^4: while loop
in thread while loop

... or when dereferencing a CODEREF or a symbolic reference to a subroutine name, or taking a reference to a subroutine, or when using the subroutine as an argument to goto ...

/J\

Replies are listed 'Best First'.
Re^6: while loop
by blazar (Canon) on Apr 26, 2006 at 10:37 UTC

    Indeed! And well done to point out - although we were talking about sub calls. However when dereferencing I'd recommend using (again: unless one knows what she's doing and has good reasons to!)

    $subref->(@args);

    This is not merely cosmetic: I actually met a situation in which a module using &$subref(@args) caused a bad interaction with some subs.