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.17 by root, Tue Sep 8 16:04:52 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] }) { ...

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines