A Quick Aside: 'strict' pragma
- Consider:
$foo_bar = 48; ... print "You want $fooo_bar\n";
- What's wrong here?
- Try this. What happens?
use strict; $honk = 1;
- That's right. Strict forces you to be a little more pedantic.
| CPU: Perl, Fall 2005 | Perl, Week 3: More Arrays, Context, Subroutines, Lexical Variables | #54 |
$foo_bar = 48; ... print "You want $fooo_bar\n";
use strict; $honk = 1;
| Copyright © 2005 Ian Langworth |