syphilis has asked for the wisdom of the Perl Monks concerning the following question:
Let's call it 'crap.pod'. When I view it as 'perldoc crap' it shows up as:=head1 STUFF Soldier * SOLDIER INPUT SOLDIER $var = INT2PTR($type, SvIV(SvRV($arg))) OUTPUT SOLDIER $arg = newSViv(0); SV * obj = newSVrv($arg, \"Soldier\"); sv_setiv(obj, (IV)$var); SvREADONLY_on(obj); $arg; =cut
What do I need to do to have perldoc render the file as per the original typemap ? That is, I want 'perldoc crap' to output:STUFF Soldier * SOLDIER INPUT SOLDIER $var = INT2PTR($type, SvIV(SvRV($arg))) OUTPUT SOLDIER $arg = newSViv(0); SV * obj = newSVrv($arg, \"Soldi +er\"); sv_setiv(obj, (IV)$var); SvREADONLY_on(obj); $arg;
Cheers,STUFF Soldier * SOLDIER INPUT SOLDIER $var = INT2PTR($type, SvIV(SvRV($arg))) OUTPUT SOLDIER $arg = newSViv(0); SV * obj = newSVrv($arg, \"Soldier\"); sv_setiv(obj, (IV)$var); SvREADONLY_on(obj); $arg;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POD not rendering as I intend
by Sidhekin (Priest) on Oct 14, 2007 at 10:28 UTC | |
by syphilis (Archbishop) on Oct 14, 2007 at 11:10 UTC | |
by grinder (Bishop) on Oct 14, 2007 at 11:28 UTC | |
by syphilis (Archbishop) on Oct 14, 2007 at 12:47 UTC | |
by grinder (Bishop) on Oct 14, 2007 at 14:31 UTC | |
|
Re: POD not rendering as I intend
by moritz (Cardinal) on Oct 14, 2007 at 10:18 UTC |