On Tue, 3 Jul 2007, Gareth Kirwan wrote:

> AFAIK components don't equal subs directly, so doing @q = $m->comp('foo')
> isn't the same as @q = foo();

Actually, that should be equivalent. OTOH, returning values from 
components is probably a very bad idea.

If a component is generating output, it should not _also_ return 
something. If it's only returning something, it should be a subroutine in 
a module anyway.

> I've never had a need to do this, and I'd evaluate your structure if you
> feel you do.

Indeed.


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

-------------------------------------------------------------------------
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