perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RobertCZ <rob...@robert.cz>
Subject Urgent: MsgIdExtract problem
Date Sun, 12 Dec 2004 13:38:13 GMT
Hi,

  I'm stuck with this MsgIdExtract.pm problem: [= Hello World =]   gives 
error

[582]ERR:  24:  Error in Perl code: Can't locate object method "Hello" 
via package "World" (perhaps you forgot to load "World"?) at 
/home/www/phl/doc/accom.html line 31.

  when extracting messages. I believe in some older version quotes like 
[= 'Hello World' =] would fix it, but in RC2 it just prints it with 
quotes 'Hello World'.

The problem is perhaps this definition

     'Embperl output msg id' => {
        'text' => '[=',
        'end'  => '=]',
        'unescape' => 1,
        'procinfo' => {
            embperl => {
                    perlcode =>
                        [
                        
'$Embperl::Syntax::MsgIdExtract::Ids{scalar(%#0%)} = q{} if (!exists 
($Embperl::Syntax::MsgIdExtract::Ids{scalar(%#0%)})) ;',
            ],
                    removenode  => 4,
                    compilechilds => 0,
                    }
            },
        },
      ) ; 

but I don't see how scalar(%#0%) modify into "whole text between [= and 
=]" Would you please advice? Thank you.

- Robert

PS Another problem: $epreq->('XXX') is ignored completely by this 
extract syntax



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message