in reply to History of 'our'
Thus if you say:
you'll be warned by perl that your _use_ of the _reserved_ word 'our' is now deprecated (as in don't do that :-).perl -lwe 'sub our { print shift } $foo = "bar"; our $foo'
The 'our' keyword has not had any function prior to perl5.6 (unless you count experimental versions that is).
But why did they have to tell us not to use 'our' ? Well, take a look at that code again. In perl prior to 5.6 it prints "bar" (and may give you the warning) - in perl5.6 it doesn't print anything out because you now declare the $foo variable rather than sending it to a function called 'our'.
Autark
|
|---|