帮忙看一下这个问题
帮忙看看这个是哪里问题,刚入门,不好意思
#! c:\perl\bin\perl
use warnings;
use strict;
use Win32::OLE;
chomp(my $line=<STDIN>;
my $word = win32:le->new("Word.Application" or die("error opening a document in word!";
$word->{visible} =1;
$word->document->add();
$word->selection->font->{size} =100;
$word->selection->typetext($line);
运行后,错误是这样
Can't locate object method "new" via package "win32:le" (perhaps you forgot to load "win32:le"?) at b.pl line 9
, <STDIN> line 1.
#! c:\perl\bin\perl
use warnings;
use strict;
use Win32::OLE;
chomp(my $line=<STDIN>;
my $word = win32:le->new("Word.Application" or die("error opening a document in word!";
$word->{visible} =1;
$word->document->add();
$word->selection->font->{size} =100;
$word->selection->typetext($line);
运行后,错误是这样
Can't locate object method "new" via package "win32:le" (perhaps you forgot to load "win32:le"?) at b.pl line 9
, <STDIN> line 1.
作者: 文化苦旅 发布时间: 2011-06-16
回复 文化苦旅
大小写要统一
大小写要统一
作者: mysqllog 发布时间: 2011-06-16
good, 非常感谢。
作者: 文化苦旅 发布时间: 2011-06-16