Hi Inliners,
Seems to me source filters and inline code in the data section don't mix
well. See example below.
perl inlc_sftest.pl
No source code in DATA section for Inline 'C' section.
at /usr/local/lib/perl5/5.6.0/i686-linux/Socket.pm line 0
INIT failed--call queue aborted, <DATA> line 1.
Works fine when commenting out the source filter. Calling Inline->init
didn't help. Something of a show stopper for me. This is with 5.6.0 and
Inline-0.43.
Any ideas?
Thanks,
Christian
### the powerful filter module -- Myfilt.pm
package Myfilt;
use Filter::Simple sub {$_}; # identity filter
1;
### the test scrip -- tinlc_sftest.pl
use lib '.'; # for Myfilt
use Myfilt; # stupid source filter
no Myfilt; # disable before actual code starts
use Inline C;
greet('you');
__END__
__C__
void greet(char* name) {
printf("Hello %s!\n", name);
}