[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mason
Subject:    [Mason] RE: [Mason-devel] using global variables in autohandler
From:       Jonathan Swartz <swartz () pobox ! com>
Date:       2000-10-23 0:16:17
[Download RAW message or body]

Please send these sorts of messages to the user's list - thanks.

The autohandler is executed before the page component, but compilation (when
this warning occurs) will actually occur in the opposite order. The page
component has to be compiled first in order to determine who it inherits
from. So, this technique won't work; you should put all "use vars" in the
handler.pl.

Jon

> -----Original Message-----
> From: mason-devel-admin@lists.sourceforge.net
> [mailto:mason-devel-admin@lists.sourceforge.net]On Behalf Of Roman
> Gavrilov
> Sent: Wednesday, October 18, 2000 6:30 AM
> To: mason-devel@lists.sourceforge.net
> Subject: [Mason-devel] using global variables in autohandler
>
>
> Hello
> i defined in my autohandler 2 global variables
>
> <%once>
> use vars qw(@ERROR $ALLOW);
> </%once>
>
> and once in a while i receiving an error when i am trying to view
> some pages
>
> that those variables were not defined.
>
> after reload everything works.
>
> As i know autohandler being executed before any other page in the
>
>  directory. So how can it be that when i calling for this global variable
>
>  in my page it yells that they are not defined when i defined them in the
> autohandler.
>
> It is very annoying to get this error once in a while. It does no harm but
> still i don't know
>
>  the cause for this error.
>
> if you have some solution or suggestions please mail me.
>
> --
> ------------------------------------------------------------------
> -----------
>  Roman Gavrilov
>  Aduva inc, Web Development Services.
>  work +972-3-7534324 mobile +972-54-834668
>  romio@aduva.com,romio@netvision.net.il
>
>
>
> _______________________________________________
> Mason-devel mailing list
> Mason-devel@lists.sourceforge.net
> http://lists.sourceforge.net/mailman/listinfo/mason-devel

_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/mason-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic