Short term workaround: Add comment delimiters. See below.

Tim Gim Yee wrote:
> 
> The following code does not DWIM.  As documented, the __C__ section ends
> at the first POD command =head1.  Is there a reason for this?  I would
> like to freely intermix POD and C code just as I do with POD and Perl
> code.
> 
> #!/usr/bin/perl -w
> 
> use Inline C;
> 
> print "9 + 16 = ", add(9, 16), "\n";
> print "9 - 16 = ", subtract(9, 16), "\n";
> 
> __END__
> __C__
> 
/*

> =head1 add
> 
> Add two numbers.
> 
> =cut

*/
> int add(int x, int y) {
>     return x + y;
> }
> 
/*

> =head1 subtract
> 
> Subtract two numbers.
> 
> =cut
> 
*/
> int subtract(int x, int y) {
>     return x - y;
> }
> 

-- 
Matthew O. Persico
    
http://www.acecape.com/dsl
AceDSL:The best ADSL in Verizon area

Reply via email to