Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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 cookies bake in the oven...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2017-12-17 14:04 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (464 votes). Check out past polls.