hyper-hyper operators?

2004-05-20 Thread Dave Whipp
Is it possible to "hyper" a hyper operator? For example, given: my @m = ( [1,2], [3,4], [5,6] ); my $a = @m + 1; my $b = @m +« 1; my $c = @m +«« 1; is it true that: ok($a == 4); ok($b »==« [ 3, 3, 3 ]; ok($c »»==«« [ [2,3], [4,5], [6,7] ]; Is there an "infinite depth" hyper oper

Re: hyper-hyper operators?

2004-05-20 Thread Luke Palmer
Dave Whipp writes: > Is it possible to "hyper" a hyper operator? > > For example, given: > > my @m = ( [1,2], [3,4], [5,6] ); > > my $a = @m + 1; > my $b = @m +Â 1; > my $c = @m +ÂÂ 1; Those are actually: my $b = @m Â+Â 1; my $c = [ map { +$^x } @m ]; Hyper markers go on both

Re: hyper-hyper operators?

2004-05-20 Thread Luke Palmer
Austin Hastings writes: > > Those are actually: > > > > my $b = @m Â+Â 1; > > my $c = [ map { +$^x } @m ]; > > Boggle! Why wouldn't that be: > >my $c = [ map { $^x Â+Â 1 } @m ]; > > for the last one? Whoops. I thought I was preserving his original semantic, but I wasn't. I had so