Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I was answering a question posted to one of the myriad of Perl mailing lists a few moments ago, and was reminded of this interesting point.
We're all told (or do the telling of) "use strict always!" and "barewords are bad". But the motivation for why barewords are bad might not be clear. Back in the Perl3 days, when barewords were added, I came up with this interesting little puzzle. See if you can solve it. Don't post your answers without hiding them somehow (readmore, black-on-black, or some other way). The PuzzlePresuming no "use strict" (or the days of Perl3), why does:work OK, but fail? -- Randal L. Schwartz, Perl hacker
In reply to Why use strict is good, and barewords are bad by merlyn
|
|