develooper Front page | perl.perl6.language | Postings from February 2005

precedence for x and ~

Thread Next
From:
Juerd
Date:
February 19, 2005 15:53
Subject:
precedence for x and ~
Message ID:
20050219235350.GG24993@c4.convolution.nl
According to S03, ~ is tighter than x, while in Perl 5, . was looser
than x.

This can be surprising in things like

    "@" x 75 ~ $zap

Which has to be written as

    ("@" x 75) ~ $zap

in order to make sense.

Was this intentional? What is the rationale?


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About