> [EMAIL PROTECTED] a écrit :
...
> With this code, it *sometimes* works as expected :
...
> I declare my constant in the only autohandler :
>
> <%once>
>       use DBI;
>       use DBD::Pg;
>       my $dbh;
>       $m->notes('PUBLIC_MAILROOT' => '/var/www/sites/semi/dlm');
> </%once>

the $m->notes are cleared on each request, and %once blocks are run once
per child.  try moving that bit to an %init block, which is run on each
request.

> Is it normal that if I mispell PUBLIC_MAILROOT I don't get an error ?
> (I'm with the default strict pragma).

yes, it's effectively just a hash, and perl lets you mispell hash keys all
day even with strict.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to