http://www.perlmonks.org?node_id=545744


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

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.