in reply to regex, pos, \G, and substr

If you want to be ultra lazy and your data is not read by other programs that you have no control of, you might use a common serialization format like yaml, xml or json.

Then you could read and write them with the appropriate CPAN modules and be pretty sure that it works as expected.

Replies are listed 'Best First'.
Re^2: regex, pos, \G, and substr
by Anonymous Monk on Jun 03, 2007 at 14:58 UTC

    Hey. XSLT lets you write whole computer programs in XML, so maybe Perl6 should written in YAML or JSON.

    It would do away with all that complicated syntax and the need to use horrible, nasty, complicated things like regexes.

    We could just load up a cpan module and Perl6 would be ready by next weekend. And we could be sure it worked properly.

      The point of this reply is completly obscure to me.

      I have been doing a lot of XSLT this last year at $work. And the ability to use regular-expressions in XSLT/XPath is something which is well sought after.

      XSLT also isn't the last conclusion of wisdom with regard to high level programming, IMHO, though it certainly has its niche where it might be concidered useful, e. g. to avoid a "media break".