You seem to have forgotten that statement modifiers don't use parens.
# EXRP while EXPR; print "Here\n" while ();
is the equivalent of
# while (EXPR) { EXPR; } while ( () ) { print "Here\n" }
Both behave identically.
In reply to Re^2: while () vs. while (1)
by ikegami
in thread while () vs. while (1)
by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |