Problems passing an reading in variables between subroutines

2000-08-18 Thread Stephane de Fontaine
Hello, I am importing an EmbPerl file into another (foo.epl) via [- Execute ({ inputfile => 'bar.epl', import=>1 }) -] foo.epl contains a set of subroutines. The main sub in bar.epl is called in foo.epl. This sub then calls other subs within bar.epl The problem I am having is passing an reading

Re: Custom error screen under EmbPerl?

2000-08-18 Thread Gerald Richter
> Thanks for the reply Gerald. I don't know how to get code via CVS Here are a couple of ways you can choose from: http://perl.apache.org/embperl/CVS.pod.1.html > so I will wait for the release. I hope it's released soon. I'm in the > midst of a project! Do you have an estimate of how soon

Re: Re(2): Re(2): localtime inconsistency

2000-08-18 Thread Gerald Richter
> > by perl -e "print scalar(localtime)": >Fri Aug 18 20:44:40 2000 > in win98: >Fri Aug 18 8:37:27 PM (Time zone GMT +8:00) > in Embperl page: >Fri Aug 18 12:44:41 2000 > 12 -> 20 are the time zone difference (+8h), so it looks like the time zone isn't set under mod_perl (or you are

Re(2): Re(2): localtime inconsistency

2000-08-18 Thread Sherwin Daganato
by perl -e "print scalar(localtime)": Fri Aug 18 20:44:40 2000 in win98: Fri Aug 18 8:37:27 PM (Time zone GMT +8:00) in Embperl page: Fri Aug 18 12:44:41 2000 sherwin [EMAIL PROTECTED] writes: > > >> it displays like this: >> >> Fri Aug 18 10:00:37 2000 >> >> and looking at window

Re: Re(2): localtime inconsistency

2000-08-18 Thread Gerald Richter
> it displays like this: > > Fri Aug 18 10:00:37 2000 > > and looking at windows 98 clock: > > Fri Aug 18 5:53:30 PM > > What does this mean? > What does perl -e "print scalar(localtime)" say? Same as the win 98 clock or same as the clock in the Embperl page? Gerald > [EMAIL PROTECTE

Re(2): localtime inconsistency

2000-08-18 Thread Sherwin Daganato
it displays like this: Fri Aug 18 10:00:37 2000 and looking at windows 98 clock: Fri Aug 18 5:53:30 PM What does this mean? [EMAIL PROTECTED] writes: >> Help please. I'm displaying the current date in embperl. >> Why is it that sometimes I get a 1day lag date (even when clicking >> refresh)

Re: requested file reference in EmbperlObject

2000-08-18 Thread Gerald Richter
Hi, > > Using EmbperlObject I need a reference to the requested file to do > something like this in EMBPERL_OBJECT_BASE: > > $mtime = (stat($filename))[9] > > I tried using the request object from mod_perl ($r->filename) but this is > a reference to EMBPERL_OBJECT_BASE. Does you have a simple solu

requested file reference in EmbperlObject

2000-08-18 Thread Volker Hess
Hi, Using EmbperlObject I need a reference to the requested file to do something like this in EMBPERL_OBJECT_BASE: $mtime = (stat($filename))[9] I tried using the request object from mod_perl ($r->filename) but this is a reference to EMBPERL_OBJECT_BASE. Does you have a simple solution?

Re: Closing a session

2000-08-18 Thread Gerald Richter
Hi, > > I face a problem with closing a session using Embedperl session module. > > I'm using the FileStore mecanism (I couldn't manage to make it work > properly with DBI/postgres) Postgress maybe work better with Apache::Session 1.52 which is supported in the next Embperl release (or in the CV

Re: localtime inconsistency

2000-08-18 Thread Gerald Richter
> Help please. I'm displaying the current date in embperl. > Why is it that sometimes I get a 1day lag date (even when clicking > refresh)? > > excerpt from new.epl: > > > > > >[- > ($curmday, $curmon, $curyear) = (localtime(time()))[3, 4, 5]; > $curyear += 1900; $curmon +=

Re: Custom error screen under EmbPerl?

2000-08-18 Thread Gerald Richter
> > I need a custom error screen under embperl. I read in the docs that > you can set an option that will enable you to use mod_perl's custom > error screen features but I'm rather clueless about mod_perl and > doing all this. > > Does anyone have an example of this? > SetHandler perl-script P

Re: Can't build Embperl 1.3b4 with threaded perl5.6.0

2000-08-18 Thread Gerald Richter
> Looks like this might help: > yes, it does > #3 0x401f474a in EMBPERL_mgGetoptDisableFormData (pSV=0x80fe0f0, mg=0x8186508) > at epmain.c:335 That's a callback where Embperl is called from Perl. With USE_THREADS in Perl 5.6 Embperl gets other parameters passed then without. That's the reason

Closing a session

2000-08-18 Thread Yann Langlais
Hi, I face a problem with closing a session using Embedperl session module. I'm using the FileStore mecanism (I couldn't manage to make it work properly with DBI/postgres) and after using "tied (%udat)->delete;" in the logout sub then try to login again, I get the same _session_id. emptying %u

localtime inconsistency

2000-08-18 Thread Sherwin Daganato
Help please. I'm displaying the current date in embperl. Why is it that sometimes I get a 1day lag date (even when clicking refresh)? excerpt from new.epl: [- ($curmday, $curmon, $curyear) = (localtime(time()))[3, 4, 5]; $curyear += 1900; $curmon += 1; $fdat{date} = "$