Hans Dieter Pearcey a écrit :
> <%once> blocks only run once (as the name implies), when the component is
> loaded (see HTML::Mason::Devel). I'd only expect your first request to get
> the
> $m->notes entry, and subsequent requests not to have it (until you restart
> your
> server), because $m->notes is per-request.
Oh I see ! Didn't understand "run once" that way. It's strange though
cause I've had the $m->notes entry working several times without
restarting the server. Replacing the block with a <%init> one
seems to solve the problem (I'm getting prudent).
>> Is it normal that if I mispell PUBLIC_MAILROOT I don't get an error ?
>> (I'm with the default strict pragma).
>
> It's just a string, not a variable or function name. Perl has no idea that
> it's misspelled. (perldoc strict)
I meant if I write :
print $m->notes('MISPELLED_STRING');
I expected to get a "use of uninitialized value" kind of error.
Anyway, thanks for your precious help.
--
Jean-Christophe Boggio
-------------------------------------------------------------------------
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