Or rather use strict; to catch this errror, even when in an IDE. I doubt any IDE implements it's own Perl, so it will have to rely on ouput from the underlying Perl installation, which in turn relies on you to tell it what to do. | [reply] [d/l] |
It would be a better idea to avoid IDEs altogether when teaching newbies. Even *Notepad* is sufficient for noddy programs like this, and you can guarantee that it won't hide any essential information - such as warnings. | [reply] |
That's very macho and all, but the reductio ad absurdum is to issue the students magnetized needles, or perhaps to hold class in a butterfly farm. IMHO, a good IDE with syntax coloring is immensely helpful at catching errors early. In fact, it helps me when I'm typing without having to wait until compile time (as with strictures). Without any empirical proof I'd conjecture that when teaching newbies it has instructive value even "for noddy programs like this".
#my sig used to say 'I humbly seek wisdom. '. Now it says:
use strict;
use warnings;
I humbly seek wisdom.
| [reply] |