in reply to Re^5: Perl Moose syntax
in thread Perl Moose syntax

Which is, by the way, exactly equivalent to
has qw< friends is rw isa Array default >;
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^7: Perl Moose syntax
by Anonymous Monk on Dec 28, 2014 at 15:23 UTC

    Just keeping it analogous to OP's example. Test code was this:

    $ perl -wMstrict -MData::Dump=pp sub has { print pp(@_),"\n" } has 'friends' => ( is => 'rw', isa => 'Array', default => () ); has friends => ((is => 'rw'), (isa => 'Array'), (default => ())); has friends => is => 'rw', isa => 'Array', default => (); has friends => is => rw => isa => Array => default => (); has "friends", "is", "rw", "isa", "Array", "default", (); has qw/friends is rw isa Array default/, (); __END__ ("friends", "is", "rw", "isa", "Array", "default") ("friends", "is", "rw", "isa", "Array", "default") ("friends", "is", "rw", "isa", "Array", "default") ("friends", "is", "rw", "isa", "Array", "default") ("friends", "is", "rw", "isa", "Array", "default") ("friends", "is", "rw", "isa", "Array", "default")