Perl 是繁重文本处理的好选择吗? [英] Is Perl a good option for heavy text-processing?

查看:88
本文介绍了Perl 是繁重文本处理的好选择吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个 Web 应用程序,它需要执行多项繁重的文本处理任务:删除某些字符、解析 XML 文件等.其中一些涉及正则表达式.

I have this web application which needs to do several heavy text processing tasks: removing certain characters, parsing XML files, among others. Some of them involve regular expressions.

Web 应用程序有一些用 Java 实现,另一些用 PHP 实现.是否值得使用 Perl 或其他特定的文本处理语言来完成此类任务,或者与使用 PHP 真的没有区别?

The web application has some implementations in Java and others in PHP. Is it worth using Perl or other specific text processing language for such tasks, or is there really no difference with using PHP?

我什至想过使用 Sed、Awk 甚至一些已编译的 C 脚本来处理文本.有很多文字要处理...

I even thought of using Sed, Awk maybe even some compiled C scripts for processing texts. There's a lot of text to be processed...

推荐答案

是的,Perl 是一个不错的选择.作为一种语言,它绝对比 Java 或 PHP 更适合于这些类型的任务.如果您有 Perl 知识,我会推荐它来完成此类任务.

Yes, Perl is a good option. As a language, it's definitely more suitable for those kinds of tasks than Java or PHP. If you have the Perl knowledge, I would recommend it for this kind of task.

这篇关于Perl 是繁重文本处理的好选择吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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