develooper Front page | perl.perl6.language | Postings from July 2002

Some regex syntax foibles

Thread Next
From:
Me
Date:
July 1, 2002 13:07
Subject:
Some regex syntax foibles
Message ID:
007b01c22138$e6d37c60$6801a8c0@ralph
Current p6 rx syntax aiui regarding embedded code:

    /
    #1 do (may include an explicit fail):
    { code }

    #2 do with implicit 'or fail'
    <( code )>

    #3 interp lit:
    $( { code } )

    #4 interp as rx:
    <{ code }>
    /

This feels cryptic. Do we need abbreviated syntax for
all these cases? If we do, is there a better syntax for
this stuff?

--
ralph


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About