Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: Re: Thoughts on some new operators for perl (6 or 7)

by Juerd (Abbot)
on Mar 10, 2004 at 14:14 UTC ( #335448=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Thoughts on some new operators for perl (6 or 7)
in thread Thoughts on some new operators for perl (6 or 7)

The '//' and '//=' (defined or) operators aren't in the core because they tend to be ambigious with an empty regex (like in split //, $str). They should be in 5.10, though.

Ehm, I have no idea what you're responding to, but I do think your example isn't a very good one. The comma in split //, $foo would disambiguate. Perl knows when to expect a value and when to expect an operator (I'm sure you've seen those "... found where ... expected" syntax errors).

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }


Comment on Re: Re: Re: Re: Thoughts on some new operators for perl (6 or 7)
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://335448]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2014-07-31 23:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (255 votes), past polls