Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: the "our" declaration ?!!

by hobbs (Monk)
on Jan 23, 2009 at 09:51 UTC ( [id://738414]=note: print w/replies, xml ) Need Help??


in reply to Re: the "our" declaration ?!!
in thread the "our" declaration ?!!

I recommend instead not using any perl old enough to lack "our". It's a much better proposition in terms of programmer usefulness. Actually I think that (proper) Unicode support and PerlIO are enough reason that most people should never consider using anything less than 5.8. "our" is lovely when dealing with package globals and "use vars" is nothing more than a mistake.

Replies are listed 'Best First'.
Re^3: the "our" declaration ?!!
by DrHyde (Prior) on Jan 23, 2009 at 11:27 UTC

    Proper Unicode support certainly would be a good reason to not use any earlier version. Unfortunately, perl doesn't have it yet. Unicode needs to "just work" for it to have proper support. It doesn't, as is obvious from a great many posts in this august forum. This isn't entirely perl's fault, of course, as it depends on broken libraries, broken terminals, broken filesystems, broken web browsers (for many use cases), and so on if funny furrin characters are to Just Work. It will be a very long time before Unicode Just Works, because *everything* needs upgrading. So Unicode is a bit of a red herring.

    I see only one thing in the various perldeltas which would persuade me that upgrading a working perl 5.6.2 (and re-testing everything, re-installing all my modules etc) to any subsequent version on any of my machines would be worth it. That one thing is userelocateableinc in 5.10, which is useful on one machine. The only other reasons I run higher versions of perl are:

    • Specifically for testing purposes;
    • Because that's what came with the OS;
    • Because it's easier to download the source for $latest from search.cpan.org;
    • Because someone whose code I depend on used a new feature when he didn't need to, and I'm too lazy to backport his code
Re^3: the "our" declaration ?!!
by Anonymous Monk on Jan 23, 2009 at 10:13 UTC
    "use vars" is nothing more than a mistake.
    Then perl is a mistake. I think you wish to reconsider.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-19 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found