Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Make $^V and "my" implicit

by FloydATC (Hermit)
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 meditating upon the Monastery: (18)
As of 2014-09-22 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (195 votes), past polls