What is the difference between `$this`, `@that`, and `%those` in Perl?
问题 What is the difference between $this , @that , and %those in Perl? 回答1: A useful mnemonic for Perl sigils are: $calar @rray %ash Matt Trout wrote a great comment on blog.fogus.me about Perl sigils which I think is useful so have pasted below: Actually, perl sigils don’t denote variable type – they denote conjugation – $ is ‘the’, @ is ‘these’, % is ‘map of’ or so – variable type is denoted via [] or {}. You can see this with: my $foo = 'foo'; my @foo = ('zero', 'one', 'two'); my $second_foo =