On Mon, Apr 15, 2002 at 09:38:07PM +0100, Jonathan E. Paton wrote:
>>> So lining up of code like this...
>>>     $x  {a}  {b}   = 1;
>>>     $xxx{aaa}{bbb} = 2;
>>>     print $x  {a}  {b},   "\n";
>>>     print $xxx{aaa}{bbb}, "\n";
>>> ....will no longer work in Perl 6?  That's not going to be much fun.

>> You'll just have to do it this way:
>>       $x{a  }{b  } = 1;
>>     $xxx{aaa}{bbb} = 2;
>>     print   $x{a  }{b  }, "\n";
>>     print $xxx{aaa}{bbb}, "\n";
>> Which is, I must admit, not as Fun as the Perl 5 way.

> Not to mention extremely error prone.  "a  " ne "a".

True, but since {} doesn't auto-quotify (or will it in Perl 6?),
$x{a}{b} should be equivalent to $x{a  }{b  }.

If you need quote marks, there's still:

      $x{"a"  }{"b"  } = 1;
    $xxx{"aaa"}{"bbb"} = 2;
    print   $x{"a"  }{"b"  }, "\n";
    print $xxx{"aaa"}{"bbb"}, "\n";

David Henderson
-- 
For news about Trek books and Enterprise, visit Psi Phi!
Star Trek Books: http://www.psiphi.org/cgi/upc-db/
Enterprise Site: http://enterprise.psiphi.org/       <*>

Reply via email to