|
package my;
use strict;
use warnings;
use Inline C => <<'END_C';
void greet() {
printf("Hello, world!
");
}
END_C
greet;
##############################################
getting error message during execution
C:\Capptool>.\Environment\Perl\bin\perl abc.pl
defined(%hash) is deprecated at blib\lib\Inline.pm (autosplit into blib\lib\auto
\Inline\check_config_file.al) line 667.
(Maybe you should just omit the defined()?)
Can't use an undefined value as an ARRAY reference at C:/Capptool/Environment/Pe
rl/site/lib/Inline/C.pm line 358.
BEGIN failed--compilation aborted at my.pm line 13.
Compilation failed in require at abc.pl line 25.
BEGIN failed--compilation aborted at abc.pl line 25.
|