in reply to Perl/Moose calling writer doesnt work

You've posted a ton of code that looks to me to be mostly unrelated to the problem. It also depends on external code that we don't have (use AXControl; use AXRecord;), so we can't even compile the code. You'll have to remove all irrelevant code and turn this into a Short, Self-Contained, Correct Example that we can run and that demonstrates the problem.

Having said that, if I try that, I get an error message: "You are overwriting a locally defined method (SetFileName) with an accessor at ...". Maybe you could explain what you are trying to do with SetFileName in the first place?

Replies are listed 'Best First'.
Re^2: Perl/Moose calling writer doesnt work
by jorba (Sexton) on Mar 10, 2018 at 13:04 UTC
    The point of SetFileName is that there are several things that need to be done when a filename is changed, not just assigning the value. I saw the message you refer to as an error. I didnt realise this was an error (in amongst all the messages Moose generates). I'll take a look at that and try to downsize the code.