[Catalyst] Perl Catalyst : lexical error not displayed

tirveni yadav yadav.tirveni at gmail.com
Wed Sep 10 12:02:59 BST 2008


On Mon, Sep 8, 2008 at 11:37 PM, Josef Chladek <josef.chladek at gmail.com>wro=
te:

>
> Am 08.09.2008 um 16:24 schrieb tirveni yadav:
>
>  Hi,
>>
>> I am facing some issues in catalyst since  upgrade to perl 5.10 from 5.8
>> in Debian 4.1 .
>>
>> Item 1)
>>     I am finding it hard to locate errors because of this :
>>       When a variable is not declared lexically:
>>       my  $title =3D  "Temp" ; #works fine whereas
>>       $title =3D "Temp" ; #Unknown Error
>>
>>       These Messages are Displayed with different options for the error
>> above :
>> i)
>>  Running 'script/testapp_server.pl' with results in this error ::
>>
>> Unknown error
>> Compilation failed in require at /usr/share/perl5/Catalyst/Utils.pm line
>> 270.
>> Compilation failed in require at script/testapp_server.pl line 55.
>>
>
> you have to patch and compile perl 5.10 yourself, the patch is described
> here
>
> http://www.nntp.perl.org/group/perl.perl5.changes/2008/02/msg21106.html
>
> download perl5.10 (http://www.cpan.org/src/perl-5.10.0.tar.gz),
> before ./Configure patch file toke.c (toplevel) line 692
>
> #else
>    parser->nexttoke =3D 0;
> #endif
> +    parser->error_count =3D oparser ? oparser->error_count : 0;
>    parser->copline =3D NOLINE;
>    parser->lex_state =3D LEX_NORMAL;
>    parser->expect =3D XSTATE;
>
> that's it, ./Confiure;make . I don't know if there's a deb-file of a
> patched perl around...
>
>
Yes, Debian Repository don't have the Perl with this patch.
Will patch and compile Perl .

Thanks for the help .



-- =

Regards,

Tirveni Yadav

What is this Universe ? From what it arises ? Into what does it go?
In freedom it arises, In freedom it rests and into freedom it melts away.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080910/b3980=
812/attachment.htm


More information about the Catalyst mailing list