$w方法 Splits a string into an Array, treating all whitespace as delimiters. Equivalent to Ruby’s %w{foo bar} or Perl’s qw(foo bar). 代码如下:function $w(string) { if (!Object.isString(string)) return []; string = string.strip(); return string ? string.spl
姓名
Type :: Utils :: Generics-轻松创建泛型类型
概要
use Type::Utils::Generics qw( class_generics T );
package Queue {
use Moo;
use Types::Standard -types;
has data => (
is => 'ro',
isa => ArrayRef,
required => 1,
);
}