perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: fdat, OUT variables scope question
Date Mon, 02 Feb 2004 18:27:33 GMT
Hi
>
> I have one question:
> I've noticed that I can't get to any EmbPerl-specific global variable
> from within the package. This is for %fdat, %http_headers_out, OUT and
> others I suppose. But perl-specific global variables like %ENV works
> ok.

%ENV is provided by Perl itself, to get the same behaviour for Embperl
variables it would be necessary to patch Perl itself.

Just use %Embperl::fdat etc. inside your packge. Alternativly, if you like
more the OO way, you could pass Embperl's request rec ($epreq) and write
$epreq -> component -> param -> fdat, which gives you an reference to %fdat

Gerald


--------------------------------------------------------------
Gerald Richter     ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
--------------------------------------------------------------
|
|   ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------


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


Mime
View raw message