in reply to The perils of being tricky
There's a better solution here. Always use warnings, especially use warnings 'void';, which will give you a "useless use of a constant" warning, since your "\n" isn't doing anything...
(OK, looking at the output, this is one of the few cases where you get a useful "'print (' interpreted as function" without getting some other error... but the advice still holds. Use warings, or -w, even on quick one-liner check code, esp when something strange is happening.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: The perils of being tricky
by mstone (Deacon) on Jun 04, 2005 at 19:19 UTC |