http://www.perlmonks.org?node_id=900900


in reply to Re^8: Problem with around BUILDARGS
in thread Problem with around BUILDARGS

My best guess based on your code and the error, is that you are calling startServer as a class method, which then calls serverLocation as a class method instead of an instance attribute accessor, which means it wont be initialized.

-stvn

Replies are listed 'Best First'.
Re^10: Problem with around BUILDARGS
by saintex (Scribe) on Apr 26, 2011 at 09:17 UTC
    Hello,
    thank you for your suggestion:
    and how can I force serverLocation to be an instance and not a class method?