On Thu, 07 Oct 1999, Tim Bunce wrote:
> On Thu, Oct 07, 1999 at 07:19:09AM -0400, Eric Strovink wrote:
> > The guide points out that __DATA__ and __END__ tokens are not allowed in Registry
> > scripts. However, the error generated into the logfile in this case complains
> > "Missing right bracket", and the line given is the last script line before the
> > token. Oddly, if one *adds* a (syntactically incorrect) right bracket at that
> > point, the script then executes OK, but <DATA> returns nothing.
> >
> > I got thrown this problem today by a colleague and spent some time scratching my
> > head until I finally related this strange behavior to his use of __DATA__.
> >
> > Perhaps the Guide's troubleshooting section should include a "Spurious 'Missing
> > right bracket'" item, asking if the user is, perchance, trying to use __DATA__ or
> > __END__ in a Registry script.
> >
>
> Has this behaviour been reported to perl5-porters as a bug?
It's not a bug. Registry.pm wraps up the code in a sub:
sub "PackageNameDerivedFromFilename" {
# code here
}
Hence why it doesn't work, and never will/should.
--
<Matt/>
Details: FastNet Software Ltd - XML, Perl, Databases.
Tagline: High Performance Web Solutions
Web Sites: http://come.to/fastnet http://sergeant.org
Available for Consultancy, Contracts and Training.