我在穆斯参数对象其文件的通配符的属性glob的Perl的驼鹿哈希性状
所以我不得不这样做
sub getInputFileParams{
my ($self) = @_;
#the only parameters passed in are in fact the input files
return keys(%{$self->{extraParams}});
}
的方法,但后来我虽然为什么不重复的属性作为散列?
has 'extraParams' => (
is => 'ro',
isa => 'JobParameters::Base',
default => sub { {} },
traits => ['Hash'],
handles => {
keys_extraParams => 'keys',
},
);
然而,扼流圈作为它不是一个哈希引用。我错过了一些东西,或者正在使用这个对象作为散列错误
不要忘记点击大对号接受的答案! – RickF 2012-02-20 13:37:56