perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Harrison" <shado...@doublebagel.com>
Subject Namespace/scope issue?
Date Mon, 14 Oct 2002 19:12:52 GMT
Hi,

I have an embperl webpage and I am executing another piece of code into
it like this:

		[- $new_code = Execute ({'object' => 'code.pm',syntax =>
'Perl'});
		$result = $new_code->subroutine -]

Inside code.pm:

Sub subroutine {
Use morecode;
&subroutine_inmorecode;
}

1;


Inside morecode:

Sub  subroutine_inmorecode {

}

Sub subroutine_inmorecode1 {


}

1;



At no point do I declare any packages, etc.

I use the same kind of code elsewhere and it works fine:

I execute module as Perl, call a sub routine in the module using
$code->subroutine, and that subroutine then uses the exact same module,
("morecode") and it can call it fine..

Any ideas?

Justin


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


Mime
View raw message