Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

use 5.010;

by naildownx (Beadle)
on Jul 13, 2009 at 11:36 UTC ( [id://779530]=perlquestion: print w/replies, xml ) Need Help??

naildownx has asked for the wisdom of the Perl Monks concerning the following question:

Who here uses:
use 5.010;

I noticed a lot of code that doesn't have it...
I am learning Perl right now from 'Learning Perl' and it is taking me in that direction...is there a reason
why certain people are not using it yet?
The early bird gets the worm but the second mouse gets the cheese.
pretendeavor

Replies are listed 'Best First'.
Re: use 5.010;
by moritz (Cardinal) on Jul 13, 2009 at 11:45 UTC
    The use 5.010: works only with version 5.10 of perl and newer, and 5.10 was released in December 2007.

    So whoever wants their code to run on older perls doesn't use it, but misses a few features (say, given/when, smart-matching, //= etc. The latter two don't require the 'use 5.010;', but require a 5.10 or newer nonetheless).

    I also sometimes omit it because I'm simply not yet used to it, and while my finger type use strict; use warnings; mechanically without thinking, the same doesn't hold true for requiring newer perl versions.

Re: use 5.010;
by cdarke (Prior) on Jul 13, 2009 at 12:31 UTC
    I teach Perl, and always ask delegates which version of Perl they are using. About half don't know, about quarter are on 5.8 and the rest are usually 5.005 or 5.6. I have not had a single delegate using 5.10.

    Why don't people upgrade? Sometimes they don't know that new releases are out there, most often they don't care.

    Upgrading requires testing and parallel running - an expensive process. Will the new version give benefits or savings greater than or equal to the cost?

    OK, so use the new release just for new projects. That means maintaining multiple versions of perl, which brings its own possibilities of screw-ups.

    I have all the *new* 5.10 features in the course material, and hope people will use it eventually, but I won't be holding my breath. Other languages have similar issues, it will be interesting to see how long it takes for Python 3 to achieve widespread use.
      So you can see as a student of Perl (especially a new one) how confused I must be...having never known previous versions of Perl that people are using. x-P
      The early bird gets the worm but the second mouse gets the cheese.
      pretendeavor
Re: use 5.010;
by Anonymous Monk on Jul 13, 2009 at 11:41 UTC
    Because it isn't required.
      Where did I originally post this? Because it was an honest mistake...haven't had my coffee yet! :)
      The early bird gets the worm but the second mouse gets the cheese.
      pretendeavor
        Coffe sounds good :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-26 00:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found