Another Mistake: Optional Parens
- What's wrong here?
print (10+5)*4, "\n";
- That's interpreted as
print(15) * 4, "\n";
- use warnings will let you know you goofed
| CPU: Perl, Fall 2005 | Perl, Week 4: More Arrays, Context, Subroutines, Lexical Variables | #16 |
print (10+5)*4, "\n";
print(15) * 4, "\n";
| Copyright © 2005 Ian Langworth |