> ------------------------------------------------ > On Tue, 12 Aug 2003 14:53:38 -0500, "Dan Muey" > <[EMAIL PROTECTED]> wrote: > > > Anybody know what version of Perl our was introduced? > > > > 5.6.0; do perldoc vars ...
Aaaaa sooooo I'll check it out > > > I'm using our in a module and want like to use 5.6.0; or whatever > > version in that module so that I can make sure the our's aren't a > > problem. > > > > Perhaps it'd be better to use my $var = ''; and then export the > > variable on request instead, that way it will work with 5.005_03. > > > > Anybody see any problems with using my instead of our for variables > > used in a module and exported on request? > > > > I don't believe you can declare a lexical and then export it > (in fact I am 99.9999% sure but then Perl does some pretty > funky things)... if you want the backwards compatibility use > the 'vars' pragma referenced above, it was replaced with 'our'.... That;s what I thought, I'll have to ponder over that one, shall I use vars or our, probably our veryone needs to be using 5.6 or greater anyhow Thanks for the info! Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]