Why do some users quote classnames in Perl?
问题 Looking at Type::Tiny, I see that the class name in the call to Type::Tiny->new is quoted in the official docs, my $NUM = "Type::Tiny"->new( name => "Number", constraint => sub { looks_like_number($_) }, message => sub { "$_ ain't a number" }, ); Why is this? Is this mere style? Is there any performance ramifications for this practice? 回答1: Take a simpler example package Foo { sub new { die 7 } }; package Bar { sub new { die 42 } }; sub Foo { "Bar" } Foo->new(); In the above example, the