Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: Make $^V and "my" implicit

by chromatic (Archbishop)
on Feb 03, 2014 at 19:56 UTC ( [id://1073258]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Make $^V and "my" implicit
in thread Make $^V and "my" implicit

Pre-declaration can be achieved by assigning an empty string or an empty list.

Now you've overloaded the assignment operator to perform both declaration and assignment, depending on its second operand. How far are you going to take this? Does this apply only to constant operands? What if you assign an empty string returned from a function? What if you want to clear a variable in an inner scope? How do you disambiguate between assignment and declaration then?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-25 19:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found