Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Use of "Use 5.XXX" pragma

by LanX (Canon)
on Dec 19, 2012 at 00:14 UTC ( #1009472=note: print w/ replies, xml ) Need Help??


in reply to Use of "Use 5.XXX" pragma

googling 'use 5.010' produced the docs for use saying

In the peculiar use VERSION form, ... A fatal error is produced if VERSION is greater than the version of the current Perl interpreter; Perl will not attempt to parse the rest of the file.

...

Also, if the specified perl version is greater than or equal to 5.9.5, use VERSION will also load the feature pragma and enable all features available in the requested version. See feature.

state is one of these features! (but better avoid it ATM as it has weird side effects)

Cheers Rolf


Comment on Re: Use of "Use 5.XXX" pragma
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-09-23 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (209 votes), past polls