Questions tagged «bareword»

2
为什么有些用户在Perl中引用类名?
看一下Type::Tiny,我看到Type::Tiny->new在的文档中引用了对的调用中的类名, my $NUM = "Type::Tiny"->new( name => "Number", constraint => sub { looks_like_number($_) }, message => sub { "$_ ain't a number" }, ); 为什么是这样?这仅仅是样式吗?这种做法是否会对性能产生影响?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.