Curly braces for a hash

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 );


The data in { ... } is a hash ref.

The data in ( ... ) is a list, but the context makes it into a hash.

Need Your Help

Rails Routing Error (undefined local variable or method `micropost_comment')

ruby-on-rails ruby ruby-on-rails-4 routes

NameError in StaticPages#home I don't quite understand why. Here my code from views/comments/_comment.html.erb <% if current_user?(comment.user) %> <%= link_to 'Destroy',

How do you get the icons out of shell32.dll?

windows icons

I'd like to get the Tree icon to use for a homegrown app. Does anyone know how to extract the images out as .icon files? I'd like both the 16x16 and 32x32, or I'd just do a screen capture.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.