David Grunwald wrote:
> I tried to execute the following script:  inline.pl
> 
> #!/usr/bin/perl
> 
> use Inline C;
> 
> print JAxH('Perl');
> 
> __END__
> __C__
> 
> SV* JAxH(char* x)  {
> return newSVpvf ("Just Another %s Hacker\n", x);
> 
> }
> 
> I get the following errors:
> 
> C:\Perl>perl inline.pl
> No code supplied to Inline at inline.pl line 3
> BEGIN failed--compilation aborted at inline.pl line 3.

FYI,

I am calling this the cut-and-paste bug. Sometime when you copy an
example you get line endings that don't work on your platform. Inline
0.32 will fix these type of errors.

Brian

-- 
perl -le 'use Inline C=>q{SV*JAxH(char*x){return newSVpvf
("Just Another %s Hacker",x);}};print JAxH+Perl'

Reply via email to