in reply to •Re: Perl keywords for declaring variables: my, our and local???
in thread Perl keywords for declaring variables: my, our and local???

I want to thank you and several others who responded to my query soo quickly. Thansk for the help!

I have another question. The our keyword is not in Programming Perl, 2nd edition by Larry Wall, Tom Christiansen and you, Randal L. Schwarts. If we are going to use the our keyword construct in the script we are developing at work to deliver to our customers, then I need to know the first version of Perl in which our was introduced and supported. That way I can know whether a customer who has a given version of Perl will be able to run the script we are developing. If our is too new and only in very recent versions of Perl, then I will just ask my team to strike it from our script and use a different declaration method.

So that'd be question one: when was our introduced in Perl? I do know that it is possible it's been in Perl a very long time and I've just encountered it now -- I'm not that big headed...

My next question would be, is there a place, preferably online, where I can check Perl language constructs (keywords) against Perl versions, so I can know which version supports which construct? That would be really helpful. That way if I encounter another construct that I haven't seen before, I can at least lookup the language compatibility information so I don't have to keep posting those kinds of questions. Not to mention there may be a lot of developers who simply don't care when a construct (keyword) entered the language. I guess whether one cares about that or not depends on what one is using Perl for.

  • Comment on Re: •Re: Perl keywords for declaring variables: my, our and local???

Replies are listed 'Best First'.
Re: Re: •Re: Perl keywords for declaring variables: my, our and local???
by larsen (Parson) on Mar 22, 2003 at 19:55 UTC
    our appeared in Perl 5.6. You can check perldeltas to see what appeared and when.

    Update: Just recalled an interesting node on the subject: Why is 'our' good?