develooper Front page | perl.perl5.porters | Postings from May 2016

Re: [perl #128241] Deprecate /$empty_string/

Thread Previous | Thread Next
May 27, 2016 13:19
Re: [perl #128241] Deprecate /$empty_string/
Message ID:
Aristotle Pagaltzis wrote:
>   I am not aware of any context where // is ambiguous as to whether it
>   means defined-or or empty match.

"int // - $z" could be parsed as either "int(// - $z)" or "int() //
(-$z)".  It actually parses as the former, but if "//" is replaced with
"||" then it parses the latter way.  So presumably if "//" ceased to be
a valid term, then it would change the parsing here, making it consistent
with "||".


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About