in reply to Re^3: Moose: problem with accessor
in thread Moose: problem with accessor

hello,
thank you for your excellent answer.

At this point, what is the difference between:
$self->method(), 'changed' and  $self->method('changed') ?

Replies are listed 'Best First'.
Re^5: Moose: problem with accessor
by ikegami (Patriarch) on Apr 01, 2011 at 13:45 UTC

    $self->method() passes no arguments.
    $self->method('changed') passes an argument.

      So, can't I use:
      $self->method => 'changed';
      to pass any arguments?

      is it right?

        I don't understand the question.

        My best guess is that you want me to state that «$self->method => 'changed'» calls "method" with no arguments.