[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Running WML from WML?




For reasons that are too long to explain here (but I'm willing to discuss them 
in private if you want), I want to run WML from WML in pass 3 (ePerl):

<:

...

system ("wml --quiet -o $result $file");

:>

This fails:

%  wml -o bidon.html   bidon.wml 
ePerl:Error: Perl runtime error (interpreter rc=0)

---- Contents of STDERR channel: ---------
** WML:Break: Error in Pass 3 (rc=139).
------------------------------------------
** WML:Break: Error in Pass 3 (rc=74).
make: *** [bidon.html] Error 1

while it works from the command line OR if I delete WML environment variables 
before running WML:

<:

foreach $key (keys (%ENV)) {
    if ($key =~ /^SCRIPT_SRC/) {
	delete $ENV{$key};
    }
}

system ("wml --quiet -o $result $file");

:>

Is it normal behaviour? Apparently, WML does not like to see its variables 
already defined.

______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com