> 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.
As a matter of fact I have already expanded this section and showed
exactly why that is happening. (the handler{} wraps __DATA__ inside
itself). It'll show up in the next version of the guide.
And yes, I'll add the possible causing error to point to this section.
Thanks Eric
_______________________________________________________________________
Stas Bekman mailto:[EMAIL PROTECTED] www.singlesheaven.com/stas
Perl,CGI,Apache,Linux,Web,Java,PC at www.singlesheaven.com/stas/TULARC
www.apache.org & www.perl.com == www.modperl.com || perl.apache.org
single o-> + single o-+ = singlesheaven http://www.singlesheaven.com