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

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

Replies are listed 'Best First'.
Re^6: Moose: problem with accessor
by saintex (Scribe) on Apr 01, 2011 at 14:08 UTC
    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.