我如何使用Linux支持中的perl模块从Word女士读取数据 [英] how do i read data from Ms Word document using perl module in linux support

查看:97
本文介绍了我如何使用Linux支持中的perl模块从Word女士读取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Linux支持中使用Perl模块从MS Word文档中读取数据

How do I read data from MS Word document using Perl module in linux support

推荐答案

Text :: Extract :: Word 看起来这可能是一个不错的起点.摘要:

Text::Extract::Word looks like it might be a good place to start. From the synopsis:

# object-based interface
use Text::Extract::Word;
my $file = Text::Extract::Word->new("test1.doc");
my $text = $file->get_text();
my $body = $file->get_body();
my $footnotes = $file->get_footnotes();
my $headers = $file->get_headers();
my $annotations = $file->get_annotations();
my $bookmarks = $file->get_bookmarks();

# specify :raw if you don't want the text cleaned
my $raw = $file->get_text(':raw');

# legacy interface
use Text::Extract::Word qw(get_all_text);
my $text = get_all_text("test1.doc");

这篇关于我如何使用Linux支持中的perl模块从Word女士读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆