문제

이 웹 응용 프로그램은 특정 문자 제거, XML 파일을 구문 분석하는 등 여러 가지 무거운 텍스트 처리 작업을 수행해야합니다. 그들 중 일부는 정규 표현을 포함합니다.

웹 애플리케이션에는 Java와 PHP의 일부 구현이 있습니다. 그러한 작업에 PERL 또는 기타 특정 텍스트 처리 언어를 사용하는 것이 가치가 있습니까? 아니면 PHP 사용과 실제로 차이가 없습니까?

나는 심지어 SED를 사용하는 것을 생각했고, 텍스트를 처리하기 위해 일부 컴파일 된 C 스크립트조차도 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 어쩌면 compiled c 스크립트조차도 아마 처리해야 할 텍스트가 많이 있습니다 ...

도움이 되었습니까?

해결책

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.

다른 팁

I too suggest you use Perl, it's made for text crunching.

However, if you are going to parse/process XML, please don't try to roll your own solution, there are several high quality modules that do the job correctly. As a starter, I recommend you take a look at XML::Twig

Also, for regular expressions, there are dozens of already-made ones under the Regexp::Common distribution. Most probably you'll find what you need there and it will save you time.

Perl is THE language for text processsing. It was designed with this in mind.

Text processing is exactly what Perl was created for. After all it's Practical Extraction and Report Language. On the other hand, for web application I'd prefer Python.

Yes, Perl was designed with processing text in mind.

It has tons of useful text processing features, and it was the first language I used (long ago) that had regular expressions.

http://en.wikipedia.org/wiki/Perl

Yes. Text processing is PERL's #1 strong point. Since you will integrate into your existing app, you'll need to execute an external program so think about how to run it securely and perhaps as a background process (to avoid start up delays in your real time web app.)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top