Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Make $^V and "my" implicit

by FloydATC (Chaplain)
on Feb 03, 2014 at 18:36 UTC ( #1073254=note: print w/ replies, xml ) Need Help??


in reply to Make $^V and "my" implicit

I never use 5.016; or any other version, simply because most of my servers run CentOS 5.x and the Perl that came with that distro, namely 5.10.something. In which case, use 5.016; would prevent me from running my scripts. Unless your scripts require 5.016 (or any other particular version, you should leave it out. It's not there to tell Perl what version it is. Perl already knows that perfectly well.

As for my, that's actually a something you actively enforce upon yourself by including use strict; if you want Perl to help you prevent many of the typical errors that can cause hard-to-find bugs in your code. It's really convenient and you'll find it's considered all but mandatory by most Perl monks, but at the end of the day it is optional. If you really want to run with those scissors, you're free to do so.

...just please don't ask me to debug that code for you ;-)

-- FloydATC

Time flies when you don't know what you're doing


Comment on Re: 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://1073254]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-08-04 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (59 votes), past polls