为什么它会向我要perl6?
为什么它会向我要perl6?
您好,
我在C++中通过嵌入脚本的方式执行perl。
在执行这个函数进行初始化的时候
perl_eval_sv(sv, G_DISCARD | G_EVAL);
得到了以下错误
Perl v6.1000.2931977377712730240 required--this is only v5.8.8, stopped at /usr/local/lib/perl5/5.8.8/Exporter.pm line 3.
Compilation failed in require at /usr/local/lib/perl5/5.8.8/Carp.pm line 193.
Compilation failed in require at /usr/local/lib/perl5/5.8.8/strict.pm line 19.
Compilation failed in require at /usr/local/lib/perl5/5.8.8/BSDPAN/Config.pm line 12.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.8/BSDPAN/Config.pm line 12.
Compilation failed in require at /usr/local/lib/perl5/5.8.8/mach/lib.pm line 6.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.8/mach/lib.pm line 6.
Compilation failed in require at (eval 1) line 1.
BEGIN failed--compilation aborted at (eval 1) line 1
我的perl是在freebsd 6.2下通过package进行默认安装的。
/usr/local/lib/perl5/5.8.8/Exporter.pm 是默认的原来的内容,我没有改动过
$ more /usr/local/lib/perl5/5.8.8/Exporter.pm
package Exporter;
require 5.006;
# Be lean.
#use strict;
#no strict 'refs';
。。。
导致出错的是这一句 require 5.006;
请问这是为什么?是因为我的perl安装的不对吗?