Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^3: Which version does Perl 5.14.2 defaults to?

by Anonymous Monk
on Mar 01, 2012 at 14:22 UTC ( #957230=note: print w/replies, xml ) Need Help??

in reply to Re^2: Which version does Perl 5.14.2 defaults to?
in thread Which version does Perl 5.14.2 defaults to?

5.10 introduced new syntactic constructs such as say. If older code (that was written with an older version) already had a function called say(), Perl 5.10 would error out because of a conflict. That is why the new functions and constructs are only available through a pragma.

You are supposed to declare the minimum version of Perl that your code demands. This would include regular expression features and whatnot. It is safe to say use 5.014 but if someone will try to run your code with 5.12, he will get an error whether or not you actually use 5.14's new features. This is largely just a convenience for a person trying to figure out whether his version of Perl is good enough for your script.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://957230]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2018-06-18 00:40 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (107 votes). Check out past polls.