Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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.

Comment on Re^3: Which version does Perl 5.14.2 defaults to?
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2015-10-09 01:00 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (232 votes), past polls