It is part of Perl's philosophy that Perl is based upon C. When one reads Camel 2 (the version Merlyn co-wrote) one sees that adopting C's precedence rules was a deliberate decision in order to enhance Perl's C-ishness. Merlyn, LW and Tom Christiansen wrote in the 2nd chapter:
Note that any operators borrowed from C keep the same precedence relationship with each other, even where C's precedence is slightly screwy. (This makes learning Perl easier for C folks.)It also makes learning C easier for Perl folks.
In reply to Re: Will/Can Perl 6 clean up the bit-wise operator precedence mess?
by sierrathedog04
in thread Will/Can Perl 6 clean up the bit-wise operator precedence mess?
by tye
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |