… | |
… | |
41 | |
41 | |
42 | This is annoying, and doesn't shield against obvious mistakes such as |
42 | This is annoying, and doesn't shield against obvious mistakes such as |
43 | using C<"">, so one would even have to write (at least for the time |
43 | using C<"">, so one would even have to write (at least for the time |
44 | being): |
44 | being): |
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 |
49 | writing. |
49 | writing: clear code is clearly something else. |
50 | |
50 | |
51 | Curiously enough, sometimes perl is not so strict, as this works even with |
51 | Curiously enough, sometimes perl is not so strict, as this works even with |
52 | C<use strict> in scope: |
52 | C<use strict> in scope: |
53 | |
53 | |
54 | for (@{ $var->[0] }) { ... |
54 | for (@{ $var->[0] }) { ... |
… | |
… | |
200 | |
200 | |
201 | crab |
201 | crab |
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 | |
|
|
205 | Adam 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 | |
205 | H.Merijn Brand |
211 | H.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 | |
209 | Pista Palo |
215 | Pista Palo |