![]() |
|
No such thing as a small change | |
PerlMonks |
Re: expected 0 not result gottenby quester (Vicar) |
on Dec 22, 2011 at 06:40 UTC ( [id://944728]=note: print w/replies, xml ) | Need Help?? |
To answer the second part of your question: Digging into this I tried something "simplier" and got more confused:
just bring the perlrun option -w (warnings) to the rescue:
That can be fixed with either extra parens or a plus sign:
There is a explanation of this in the perldoc for print: "Be careful not to follow the print keyword with a left parenthesis unless you want the corresponding right parenthesis to terminate the arguments to the print; put parentheses around all arguments (or interpose a + , but that doesn't look as good)."
In Section
Seekers of Perl Wisdom
|
|