Which structure is created as following in Perl?
my $self = { Name => $name, Color => $class->default_color };
If it is a hash, then is the official notation not the following ( parentheses, %
instead of $
):
my %self = ( Name => $name, Color => $class->default_color );