Re: Bracekets

2002-04-09 Thread Damian Conway
Simon Cozens wrote: > > Piers Cawley: > > Well, no. Because Perl 6 is specified as behaving like perl 5 until > > told different. Which means that the first translation you give would > > be a syntax error. > > Ouch. Guess I need to go reread A1. Anyway, that makes it easier - > then there needs

Re: Unary dot

2002-04-09 Thread Piers Cawley
Larry Wall <[EMAIL PROTECTED]> writes: > Me writes: > : > But suppose you want all .foo to refer to self and not > : > to the current topic. > : > : What about > : > : given (self) { } > > That wouldn't have the same effect as what we're talking about--it'd be > overruled by any C with

Re: Unary dot

2002-04-09 Thread Larry Wall
Me writes: : > But suppose you want all .foo to refer to self and not : > to the current topic. : : What about : : given (self) { } That wouldn't have the same effect as what we're talking about--it'd be overruled by any C within. We're talking about how to make .foo mean self.foo reg

Re: Bracekets

2002-04-09 Thread Piers Cawley
Simon Cozens <[EMAIL PROTECTED]> writes: > Piers Cawley: >> Well, no. Because Perl 6 is specified as behaving like perl 5 until >> told different. Which means that the first translation you give would >> be a syntax error. > > Ouch. Guess I need to go reread A1. Anyway, that makes it easier - >

Re: Bracekets

2002-04-09 Thread Piers Cawley
Jonathan Scott Duff <[EMAIL PROTECTED]> writes: > On Tue, Apr 09, 2002 at 04:17:38PM +0100, Simon Cozens wrote: >> Aaron Sherman: >> >nice du -a | sort -n | tail -300 | tac | perl -nle ' >> >die "Require non-zero disk size!\n" unless $ENV{DF}; >> >if ($. == 1) { >> >

Re: Bracekets

2002-04-09 Thread Simon Cozens
Aaron Sherman: > perl -MNet::Ping -nle 'print "Ghost DHCP lease: $1" > if /lease\s+(\d\S+)/ && > ! Net::Ping->new("icmp")->ping($1)' \ > /var/state/dhcp/dhcpd.leases This becomes perl -MNet::Ping -nle 'print "Ghost DHCP lease: $1" if /lease\s+(\d\S+)/ &&

Re: Brackets

2002-04-09 Thread Roman Hunt
if ($a = "\04") { my only question with doing away with '{' and '}' are dealing with issues of automagical stringification/number conversion with different types of the same name. would this be an issue? would $a be the 5th element of $ambig[$a] or would it be the "\04" key to $ambig[$a] PS I do

Re: Bracekets

2002-04-09 Thread Luke Palmer
> If the new, spiffy features of Perl6 are out of my reach that 60-80% of > the time, and I have to use "perl5compat -nle ...", then the usefulness > of this new language will be largely lost on me. I'm not sure I follow. What hypothetical features are you talking about here? From what I've seen

Re: Bracekets

2002-04-09 Thread Aaron Sherman
On Mon, 2002-04-08 at 20:39, Larry Wall wrote: > Aaron Sherman writes: > : If {} goes away in Perl6, then everything you've heard about Perl6 being > : "not really all that different from Perl5" is either a lie or a damned > : lie. People keep saying "it's just Perl5, but instead of syntax X, you

Re: Unary dot

2002-04-09 Thread Piers Cawley
Me <[EMAIL PROTECTED]> writes: >> But suppose you want all .foo to refer to self and not >> to the current topic. > > What about > > given (self) { } > > Also, what about > > use invocant; > > resulting in all method bodies in scope getting an implied > surrounding given (self) { ...

Re: Unary dot

2002-04-09 Thread Me
> But suppose you want all .foo to refer to self and not > to the current topic. What about given (self) { } Also, what about use invocant; resulting in all method bodies in scope getting an implied surrounding given (self) { }. And what about 'me' or 'i' instead of 'self'?