------------------------------------------------
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 ...

> 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'....

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to