FAQ Database Discussion Community

Why I can use @list to call an array, but can't use %dict to call a hash in perl? [duplicate]

This question already has an answer here: Why do you need $ when accessing array and hash elements in Perl? 9 answers Today I start my perl journey, and now I'm exploring the data type. My code looks like: @list=(1,2,3,4,5); %dict=(1,2,3,4,5); print "$list[0]\n"; # using [ ] to wrap...

Why the syntax for defining sigils in Elixir doesn't use “defsigil”?

I was reading the page about sigils in the Elixir tutorial. I expected the syntax for defining sigils uses "defsigil" just like "defstruct", "defprotocol", and so on. But it was not so. Why?