Re: use; for project

2001-07-17 Thread Gerald Richter

Hello
>
> I need to find a place to put use statements in. Where is the right place?
>

Every file runs in it own namespace, so when the module exports symbol, you
must put the use in the file where want to use the exported symbols. In your
case in base.epl (or you have use the full name i.e. Croak::croak)

You can put the use in a [! !], this is only executed on the first run. This
make thinks a little faster

Gerald


-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925131
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




how can i declare global variable with use strict?

2001-07-17 Thread Lukas Zapletal

I have found a sentence in the manual I can use 'var' for defining global
variables.

I tried:

[!var %hash; !]

in one file and in second

[-
Execute('the.file.above.epl');
%hash = ();
...
-]

But my 5.6.0 perl told me on it:

[181]ERR: 32: Line 1: Warning in Perl code: Operator or semicolon missing
before %udat at d:\inetpub\wwwroot\embperl\const.epl line 6.

[181]ERR: 32: Line 1: Warning in Perl code: Ambiguous use of % resolved as
operator % at d:\inetpub\wwwroot\embperl\const.epl line 6.

I suggest there`s something wrong with 'var'. Please Help!

Regards

Lukas Zapletal [[EMAIL PROTECTED]]
BACH systems Ltd. [www.bach.cz]
web programmer


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how can i declare global variable with use strict?

2001-07-17 Thread Gerald Richter

>
> [!var %hash; !]
>

use

[$  var %hash $]

NOTE: %hash will only be global for that page. It will not be visible in the
pages you include.


Gerald




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how can i declare global variable with use strict?

2001-07-17 Thread Lukas Zapletal

>use
>
>[$  var %hash $]
>
>NOTE: %hash will only be global for that page. It will not be visible in
the
>pages you include.


so I`m not able to make my own session hash and use it globally in the
request (all pages)?

lzap


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Sessions with Postgres

2001-07-17 Thread Robert

Gerald Richter wrote:
> 
> I think I will have a test version ready during next week and I send you a
> copy, so you can test it against Postgres in your environment.

Hi everybody,

  I'm back at work (sort of) and I'm glad to see there's progress on the
Embperl/Session front. Gerald, when there's something you want us to
test in the CVS, would you post info to this list? I'm looking forward
too.

  Related question: Can Embperl be safely downgraded? Can I install CVS
or 2.0beta version, test it and when something's wrong just reinstall
1.3.3 over it? Or should I delete stuff manually first? I did it couple
of times on my test server, but I got a little bit nervous about my
production server.

 - Robert

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how can i declare global variable with use strict?

2001-07-17 Thread Robert

Lukas Zapletal wrote:
> 
> ...
> 
> so I`m not able to make my own session hash and use it globally in the
> request (all pages)?

I guess that's what EmbperlObject is for. But in need I sometimes put
stuff in pnotes.

- Robert

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how can i declare global variable with use strict?

2001-07-17 Thread Gerald Richter

>
> so I`m not able to make my own session hash and use it globally in the
> request (all pages)?
>

You, can but with a different way:

See

http://perl.apache.org/embperl/IntroEmbperlObject.pod.4.html#Website_Global_
Variables

and

http://perl.apache.org/embperl/TipsAndTricks.pod.2.html#Alternative_Way_To_D
o_Global_Var

Gerald




-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925131
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Sessions with Postgres

2001-07-17 Thread Gerald Richter

>
>   I'm back at work (sort of) and I'm glad to see there's progress on the
> Embperl/Session front. Gerald, when there's something you want us to
> test in the CVS, would you post info to this list? I'm looking forward
> too.
>

I have done something. I send it to you with private mail. I thinks it's too
big to send it to the list. If anybody else what's to test, leave me a note.


>   Related question: Can Embperl be safely downgraded? Can I install CVS
> or 2.0beta version, test it and when something's wrong just reinstall
> 1.3.3 over it?

Yes, you could do this without problems. You could also use the
EMBPERL_EP1COMPAT Flag to make EP 2.0 behave like EP1

Gerald




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Sessions with Postgres & Embperl 2.0 EP1COMPAT Flag

2001-07-17 Thread Gerald Richter

>
> I meant posting info we should get the latest CVS tarball so you don't
> have to mail it to all of us by hand.
>

The session code is separated in a module on it's own which isn't in the cvs
yet.

Also the CVS is currently moveing form perl.apache.org to cvs.apache.org and
I didn't have tested the new location...

>
> And when it comes to EMBPERL_EP1COMPAT 1, have well is this tested? I
> have maybe thirty critical virtual servers using Embperl on my
> production server (critical == pays my rent ;-) I'm terrified by the
> idea a page in an obscure corner of some virtserver breaks and I'll find
> it out when customer calls...
>

It uses exactly the same code as 1.3.3. The EP 2 make test, also tests the
compatibility mode, so it should work without problems. Of course not as
many users have used it so far, so there maybe a (very) hidden bug
somewhere, but I don't think so. (I use EMBPERL_EP1COMPAT on my own in some
of our projects, where we need to run old and new code together and I found
nothing what's going wrong so far)

Gerald

-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925131
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




naming request global parameter and EO

2001-07-17 Thread Lukas Zapletal

Hello,

I must deal with naming problem.

I want to use both embperl object and global variables (in the %req hash).

How should I name that object? In the tutorial it is named $subs but I think
it`s not good.

Wat are your suggestions and opinions?

ps - I`m thinking in coding IIS ISAPI filter module to get Embperl working
in multithreading enviroment on NT (because PerlIS.dll seems not
compatible). Anyone has experiences with ISAPI programming?

Regards

Lukas Zapletal [[EMAIL PROTECTED]]
BACH systems Ltd. [www.bach.cz]
web programmer


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]