On Fri, 2006-11-03 at 12:10, Pronichev Alexander wrote:
> Hi everyone, I would like to finish my perl code in mason %init section
> (for example) immediately, but only %init section, I don't want
> $m->abort;. I think that I've to write smth like this:
> last BLOCK if $some;
A common Perl mechanism for this:
<%init>
if ($x) {
if ($y) {
goto INITEND;
}
}
INITEND:
</%init>
Don't let them tell you that goto isn't occasionally justified ;)
Bye
Paolo
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users