and the implications of the implied continue, I wondered outloud about unobvious pathologies in general. Consider, for your amusement, what this does:perl -pe'}{$_=$.' filename
[We could argue that this example should produce a warning, but this post is really about enjoying the quirks, and not about fixing them.]for (qw(Whom the bell tolls)) {} continue { print "$_\n"; next }
What pathologies twist the corners of your mouth?
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unobvious Pathological Code Snippets
by gaal (Parson) on Mar 28, 2006 at 17:12 UTC | |
by merlyn (Sage) on Mar 28, 2006 at 17:16 UTC | |
by gaal (Parson) on Mar 28, 2006 at 20:04 UTC | |
by polettix (Vicar) on Apr 01, 2006 at 00:42 UTC | |
by gaal (Parson) on Apr 01, 2006 at 07:49 UTC | |
|
Re: Unobvious Pathological Code Snippets
by BrowserUk (Patriarch) on Mar 28, 2006 at 18:11 UTC | |
by QM (Parson) on Mar 28, 2006 at 18:52 UTC | |
by BrowserUk (Patriarch) on Mar 28, 2006 at 19:44 UTC | |
by QM (Parson) on Mar 28, 2006 at 20:17 UTC | |
by BrowserUk (Patriarch) on Mar 28, 2006 at 21:30 UTC | |
| |
|
Re: Unobvious Pathological Code Snippets
by hv (Prior) on Mar 29, 2006 at 02:07 UTC |