changed the file to executable. ran it and got this:#!/usr/bin/perl -w use lib '/usr/share/perl5/Module/Install'; use Inline C; print "test\n"; greet('Ingy'); __END__ __C__ void greet(char* name) { printf("Hello %s\n", name); }
what am I doing wrong?test Undefined subroutine &main::greet called at ./inlineTst.pl line 5.
In reply to newbi with inline C by kopolov
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |