in reply to Really Long if/elsif/else blocks
something a bit more normal likeif($foo){ $blah} elsif($bar){ $baz}
orif ($foo) { $blah } elsif ($bar) { $baz }
makes it easier to see where blocks begin and end. Also, you should use an editor that lets you move between matching delimiters, e.g. "%" in vi or "C-M-f" and "C-M-b" in Emacs.if ($foo) { $blah } elsif ($bar) { $baz }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Really Long if/elsif/else blocks
by mandarin (Hermit) on May 31, 2008 at 20:29 UTC | |
by MidLifeXis (Monsignor) on May 31, 2008 at 22:47 UTC | |
by educated_foo (Vicar) on Jun 01, 2008 at 03:31 UTC | |
by Anonymous Monk on Jun 01, 2008 at 12:05 UTC | |
by parv (Parson) on Jun 01, 2008 at 08:05 UTC |