M. Kristall wrote:
John W. Krahn wrote:
As long as you realise that putting a space between the operator name and the
left parenthesis may trigger a warning when warnings are enabled. (And you DO
have warnings enabled, don't you?)
$ perl -le'use warnings; print( 1,2,3,4,5 )' 12345 $ perl -le'use warnings; print ( 1,2,3,4,5 )' print (...) interpreted as function at -e line 1. 12345
$ perl -le"user warnings; print ( 1,2,3,4,5 );" 12345
$ perl -le"user warnings; print ( 1,2,3,4,5 )"
Can't locate object method "user" via package "warnings" (perhaps you forgot to load "warnings"?) at -e line 1.
John
lol... $ perl -le"*use* warnings; print ( 1,2,3,4,5 );"
Yes, you can get a warning, but if you go all the way (meaning semicolons at the end of *every* line and using parentheses and braces where they would go in most other languages), you are typically fine.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>