Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Potential Ternary Operator Bug

by robin (Chaplain)
on Dec 11, 2001 at 18:49 UTC ( [id://130936]=note: print w/replies, xml ) Need Help??


in reply to Re: Potential Ternary Operator Bug
in thread Potential Ternary Operator Bug

It's actually very easy to get the interpreter to reject @a->[3] - I'm not sure how the rumour that it's hard began. I wrote a very simple patch, which is in bleadperl, to deprecate that usage:

[robin@penderel perl@12959]$ ./perl -we '@x->[2]'
Using an array as a reference is deprecated at -e line 1.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-03-28 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found