Date: 27 Sep 2001 11:37:46 GMT From: damian@qimr.edu.au (Damian James) Subject: Re: Forcing reevaluation of code in mod_perl scripts? Message-Id: On Thu, 27 Sep 2001 13:19:26 +0200, EXP said: >I want to execute an external perl file from a mod_perl script but I >don't want mod_perl to keep that external perl file in memory. >I can't simply run it with system(""); as I need to access some global >variables. >... >Any ideas? > A couple: use system(), pass the data as arguments (optionally serialised with Data::Dumper or Storable, etc), suitably escaped for your shell. system(), share the data via files or an DBMS or another external mechanism (IPC shareable?). HTH Cheers, Damian -- @:=grep!(m!$/|#!..$|),split//,;@;=0..$#:;while($:=@;){$;=rand $:--,@;[$;,$:]=@;[$:,$;]while$:;push@|,shift@;if$;[0]==@|;select$,, $,,$,,1/80;print qq x\bxx((@;+@|)*$|++),@:[@|,@;],!@;&&$/} __END__ Just another Perl Hacker,### http://home.pacific.net.au/~djames.hub