Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Make $^V and "my" implicit

by FloydATC (Deacon)
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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1073254]
[atcroft]: Lady_Aleena: I know that they used the L<text|url> syntax to link to them, but I was wondering if there was a more "standard" way (for instance, if the L<module_name> syntax might work better).
[Lady_Aleena]: atcroft, I"m trying to think of a module I've used that linked to another module.
[Lady_Aleena]: atcroft, I just put a link to another module in one of my local ones. For a normal link L<text|url> the text would be written out then the url would follow the text in brackets <>. However, when I linked to another module, the text was written ..

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2017-05-27 04:14 GMT
Find Nodes?
    Voting Booth?