Perl variable funkiness: default package scoping ($main::, $::) doesn’t play nice w/ strict (‘vars’). Lexically scoped variables don’t cross files, even if they should be within the same block (ie, if you use require() — doesn’t work the same as includes in PHP). This took longer than it should have to figure out what was going on. I’ve gotten too used to sane languages. 😉
- Coping with Scoping – Dominus on scoping
- Variable Scoping in Perl: the basics