The Apocalypse on operators says that if one of the operands of a
hyperoperator is a scalar, then that scalar is (nominally) treated as an
array of copies of that scalar.  In other words:

        my $foo=1;
        my @bar=(2, 3, 4);
        
        my @baz=$foo ^+ @bar;   # @baz=(3, 4, 5)

Does that extend to multiple dimensions?

        my @foo=(1, 2; 3, 4);
        my @bar=(5, 6);
        
        my @baz=@foo ^+ @bar;   # Is @baz=(6, 8; 8, 10)?

How does that interact with ragged arrays?

        my @foo=([1, 2], 3; 4, [5, 6]);
        my @bar=(7, 8);
        
        my @baz=@foo ^+ @bar;   # ???

--Brent Dax <[EMAIL PROTECTED]>
@roles=map {"Parrot $_"} qw(embedding regexen Configure)

Wire telegraph is a kind of a very, very long cat. You pull his tail in
New York and his head is meowing in Los Angeles. And radio operates
exactly the same way. The only difference is that there is no cat.
    --Albert Einstein (explaining radio)

Reply via email to