there's another way, via perldoc, to do the same.while (0) { ### nasty code mess here ... }
it works because the POD parser doesn't do anything with the 'comment' directive.=item comment ### nasty code here =end comment =cut
i just thought it was cool. and another good reason to fiddle with perldoc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how about cool uses for perlDOC?
by hossman (Prior) on Feb 04, 2005 at 08:07 UTC | |
by ff (Hermit) on Feb 17, 2005 at 14:09 UTC | |
by ff (Hermit) on Feb 27, 2005 at 04:15 UTC | |
|
Re: how about cool uses for perlDOC?
by ambrus (Abbot) on Feb 03, 2005 at 19:42 UTC | |
by geektron (Curate) on Feb 03, 2005 at 21:10 UTC | |
by ambrus (Abbot) on Feb 03, 2005 at 21:17 UTC |