NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Why K&R style for me (Score:2)
Re:Why K&R style for me (Score:1)
I'd have much less problem with K&R if so many folks didn't also use a two-space indentation...
... where
Re:Why K&R style for me (Score:1)
Anyway, in Perl it's not very common, at least not in the code I've stumbled upon. There's seldom use for that kind of structure when most stuff is garbage collected or can be made to clean up automatically (like file handles closing the file when they go out of scope).
Reply to This
Parent
Re:Why K&R style for me (Score:1)
That said, the same structure confusion can happen just as easily in nested loops.
foreach $a (@array) {}
(*shrugs*)