ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/common-sense/sense.pm
(Generate patch)

Comparing common-sense/sense.pm (file contents):
Revision 1.16 by root, Tue Sep 1 19:10:02 2009 UTC vs.
Revision 1.18 by root, Tue Sep 22 01:27:53 2009 UTC

41 41
42This is annoying, and doesn't shield against obvious mistakes such as 42This is annoying, and doesn't shield against obvious mistakes such as
43using C<"">, so one would even have to write (at least for the time 43using C<"">, so one would even have to write (at least for the time
44being): 44being):
45 45
46 @{ defined $var->[0] ? $var->[0] : [] } 46 @{ defined $var->[0] ? $var->[0] : [] }
47 47
48... which nobody with a bit of common sense would consider 48... which nobody with a bit of common sense would consider
49writing. 49writing: clear code is clearly something else.
50 50
51Curiously enough, sometimes perl is not so strict, as this works even with 51Curiously enough, sometimes perl is not so strict, as this works even with
52C<use strict> in scope: 52C<use strict> in scope:
53 53
54 for (@{ $var->[0] }) { ... 54 for (@{ $var->[0] }) { ...
200 200
201crab 201crab
202 202
203 "i wonder how it would be if joerg schilling wrote perl modules." 203 "i wonder how it would be if joerg schilling wrote perl modules."
204 204
205Adam Kennedy
206
207 "Very interesting, efficient, and potentially something I'd use all the time."
208 [...]
209 "So no common::sense for me, alas."
210
205H.Merijn Brand 211H.Merijn Brand
206 212
207 "Just one more reason to drop JSON::XS from my distribution list" 213 "Just one more reason to drop JSON::XS from my distribution list"
208 214
209Pista Palo 215Pista Palo

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines