What specifically makes Perl superior for regular expressions?
-
I've frequently heard peers say that Perl is "good when you need to use regular expressions". Whenever I ask how or why Perl is better than other scripting languages for writing regular expressions, I never get a specific answer.
-
Answer:
1. Perl has regex built directly into the language. Other programming languages need a module/library to use them. raw Perl without any modules, can handle regex. 2. Perl's regex parser is so great that other languages have either ported Perl's parser over, or reimplemented them to handle regexes the way Perl does, all the way down to syntax. 3. Perl's regexes are quicker. It's not as much work for Perl to parse regex as it is in other languages so many Perl idioms revolve around regex. In other languages, regexs are relegated to special cases. Regexes in Perl are ubiquitous. These are the main reasons. Regex in perl is a feature, not an appendage.
Marcelle Bonterre at Quora Visit the source
Related Q & A:
- What are the test automation tools that use perl as the scripting language??Best solution by Yahoo! Answers
- What specifically are complex information systems?Best solution by nist.gov
- What vehicles have the highest ground clearance and are superior vehicles?Best solution by Yahoo! Answers
- What makes a car a classic? And what makes classic cars so valuable?Best solution by autoblog.com
- What is the difference between the regular pontiac sunfire and the sunfire GT?Best solution by wiki.answers.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.