Maybe I should have mentioned regexes a few more times :-)

Seriously tho, you are right, having them all in one place wrapped up in a nice bundle is the real advantage. Having said that I think its arguable that Perl's single most important conceptual advance was/is the seamless integration of regex tools into the language. And Perl6 is apparently taking this to the next level (or is it three levels higher? :-)

I guess its possible that other languages had similar before perl (AWK maybe? SNOBOL?) but Larry did some subtle things to his implementation that really made a difference to its ease of use and general uptake. Its no surprise that "perl compatible regulare expressions" are now standard fare accross the industry.

For those not aware of what im refering to, think about pattern escaping in regexes, the original libraries by Kernigham (or was it Ritchie, i can never remember) had capturing braces escaped because it was felt that the main use of regexes would be for parsing C code by C programmers for subroutine signatures. According to legend Larry thought that was dumb and switched it, to the benefit of all of us. He also invented the (?:) notation afaik. Whatever. The point is that if Perl is remembered for anything in the history of computer lore a hundred years hence im pretty sure it will be its role for moving regular expression tools from the esoteric to the commonplace.

---
$world=~s/war/peace/g


In reply to Re^3: What's so unique about Perl? by demerphq
in thread What's so unique about Perl? by Ido

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.