On 25 Oct 2005, at 19:56, Aaron Trevena wrote:

On 10/25/05, Kieren Diment <[EMAIL PROTECTED]> wrote:


I'm trying to rig together a fairly minimal Maypole app to look at
the contents of a database.  As soon as I try to introduce a :
Exported method into the app I get invalid code attribute errors like
this:


... Putting BEGIN { } around the call to
setup is one way to take care of this.



This works.  Thanks.

And now that I think of it, as this is

a.  simple, and
b.  it works

Are there any disadvantages of calling setup in a BEGIN {} block? (thinking documentation). Presumably writing "use Maypole::Application qw(-Setup);" (given the caveats in the Maypole::Application pod )is equivalent?

Kieren



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Maypole-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel

Reply via email to