develooper Front page | perl.perl5.porters | Postings from April 2007

Re: perlrebackslash

Thread Previous | Thread Next
From:
demerphq
Date:
April 12, 2007 14:17
Subject:
Re: perlrebackslash
Message ID:
9b18b3110704121416k20ddff27h1f3af31d049ddf64@mail.gmail.com
On 4/12/07, Larry Wall <larry@wall.org> wrote:
> On Thu, Apr 12, 2007 at 03:23:12PM +0200, Abigail wrote:
> :  \v                Short cut for (*PRUNE).
> :  \V                Short cut for (*SKIP).
>
> I would suggest reserving these for matching vertical (non)whitespace,
> to go along with \h and \H for matching horizontal (non)whitespace.
> These have have turned out to be pretty useful for matching horizontal
> and vertical whitespace in Perl 6.  And arguably pruning and skipping
> should have a longer, more readable Huffman coding in any case.

Just to explain, this comes from MRE2&3 where it was
requested/proposed by Jeffery Friedl. The idea was that the v denotes
dividing the pattern into two parts. I kinda like it, although I can
see your point and dont have any problem removing/changing it. I would
tho like a shorter way to say both, I think they are pretty useful.
(*P) and (*S) maybe.

As for implementation without englargening the bitmap that we use to
store classes we dont actually have room for both \h\H and \v\V. :-(
Perhaps this will have to wait until charclasses are redesigned.

Anyway, if you want these reserved then ill put together a patch.

Yves
-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | 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