[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] importing variables between modules with "strict"



At 16.15 -0500 1999.11.13, Jean-François Jobidon wrote:
>@EXPORT = qw($alpha);
>
>my $alpha = "qwerty";

You cannot export lexically scoped variables.  Exporting works by aliasing
namespaces, essentially.  Lexical variables have no namespaces.

-- 
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org