Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by Tux (Monsignor)
on Feb 04, 2014 at 08:11 UTC ( #1073343=note: print w/ replies, xml ) Need Help??


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

In the sorted case example, you are right. But having the correct code as in the example makes a change from 0 to -1 or 999 as default a very easy edit, which is not to say when using ||.

   The same goes if one were dealing with char data and used $foo || ''

Why do you want to change a perfectly valid string "0" to the empty string "". I seldom want such a change for defaults.


Enjoy, Have FUN! H.Merijn


Comment on Re^6: Make $^V and "my" implicit
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2015-07-02 08:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (31 votes), past polls