Can you give me an example of the former?
I can't think of any off the top of my head.
Scalar value @foo[$bar] better written as $foo[$bar], for one.
If part of Perl's breeding is autovivication and interpretation of undef as
0 or "" in the appropriate context, why should Perl
print IRONY;
I consider a module without tests or documentation to be a syntax
error. Maybe perl should refuse to run a module without POD and
MakeMaker should refuse to install a module without tests unless given
a special flag. Then people will sometimes forget to use that flag
and
I thought that was the problem you were having. Forgetting to type
"use strict" in your programs.
No -- its *anywhere* that you write scripts/modules/what have you. Anywhere
you miss it, it is a syntax error to me.
Modules? Modules should have test suites. A simple test would be to
check
hat others have said. Sorry, but that's the truth...
On Fri, Feb 16, 2001 at 09:03:54PM -0800, Edward Peschko wrote:
Right now, I do a search on the standard distribution, and I see
'use warnings::register' in 13 out of 270 modules. Make 'use warnings' the
default, and you'd bet that t
On Fri, Feb 16, 2001 at 08:41:02PM -0500, [EMAIL PROTECTED] wrote:
On Fri, Feb 16, 2001 at 03:28:36PM -0800, Edward Peschko wrote:
Its because '-w' is a global switch.
What about the new lexical warnings? "use warnings"?
umm... that's part of what this is all about. People