[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: More newbie questions...
From: |
Johan Holmberg |
Subject: |
Re: More newbie questions... |
Date: |
Wed, 25 Oct 2000 13:45:32 +0200 (MET DST) |
On Wed, 25 Oct 2000, Steven Knight wrote:
>
> I just did some digging, and it turns out this is a deeply embedded
> Perlism. From perlvar:
>
> Perl identifiers that begin with digits, control characters,
> or punctuation characters are exempt from the effects of the
> `package' declaration and are always forced to be in package
> `main'. A few other names are also exempt:
>
> ENV STDIN
> INC STDOUT
> ARGV STDERR
> ARGVOUT
> SIG
>
> In particular, the new special `${^_XYZ}' variables are always
> taken to be in package `main', regardless of any `package'
> declarations presently in scope.
>
> So there isn't much we can do to fix this, so I'll check in a change to
> the doc. Sorry this wasn't taken care of sooner.
>
Since these variables violates the the whole purpose of controlling
the Export/Import of variables between Conscript files, wouldn't it
be a good idea to generate an error (or at least a clearly visible
warning) if they are used in Export/Import.
/Johan Holmberg