in reply to Problems with 'our' definition with perl 5.00503
If your uses of our can be substituted with my, why are you using our?
They are not interchangable. If you can use my wherever you are currently using our you should do so.
Otherwise, if your code has to run on 5.005, you could use vars q/ $x $y $z/; and that will run both pre- and post-5.6.
But really, you should only use our when you cannot use my.
|
---|