Another nice to have: make # less ambiguous

2001-07-24 Thread Steve Fink
On my wishlist is forbidding the use of # just about anywhere but as a comment starter and in strings or regular expressions. Not a big deal, but it would make it easier to write 90% correct perl syntax parsers. It's a pain dealing with q#not a comment# and m#still not# and s(even)#this#.

Re: Nice to have it

2000-08-28 Thread Eric Roode
Damian Conway wrote: I have a draft RFC that proposes that the LIST argument of a grep be optional in a hash slice, and default to the key list of the sliced hash. So: @hash{grep /^[^_]/} gives you the public values of %hash. And the advantage of that over @hash{ grep /^[^_]/,

Re: Nice to have it

2000-08-28 Thread Bart Lateur
On Mon, 28 Aug 2000 14:43:08 -0400 (EDT), Eric Roode wrote: Damian Conway wrote: @hash{grep /^[^_]/} gives you the public values of %hash. And the advantage of that over @hash{ grep /^[^_]/, keys %hash } would be what? Brevity? What if I want those keys of %hash? Or both