perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerald Richter <rich...@ecos.de>
Subject Re: Problem with import subroutine
Date Sun, 10 Aug 2003 18:37:54 GMT
> I have two scripts.
>
> base.htm
> index.htm
> ----------
>
> index.htm :
>
> [-
> 	sub test {
> 		return 'wellcome';
> 	}
> -]
>
>
> base.htm :
>
> [- Execute ({inputfile => '*' , import => 1 }) -]
> [+ test () +]
>
>
> When I run index.htm then base.htm return error , because no find
> subroutine test. Subroutine test don't import to base.htm . Why ?
>

In index.htm use [! !] instead of [- -], because [--] is not executed on 
import, so your sub doesn't get defined. [! !] will be executed on import and 
everything works

Gerald


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


Mime
View raw message