P
Peng Yu
Hi,
In the bioperl Eutilities cookbook,
http://www.bioperl.org/wiki/HOWTO:EUtilities_Cookbook
I see the following code,
print join(',', grep {$field->$_} qw(is_date
is_singletoken is_hierarchy is_hidden is_numerical)),"\n
\n";
I'm not understand how $field->$_ work with. I'm trying to break the
above code so that I can understand. But I failed. Could you please
help generate a minimal example to help me understand the above usage
of "grep {$field->$_}"?
In the bioperl Eutilities cookbook,
http://www.bioperl.org/wiki/HOWTO:EUtilities_Cookbook
I see the following code,
print join(',', grep {$field->$_} qw(is_date
is_singletoken is_hierarchy is_hidden is_numerical)),"\n
\n";
I'm not understand how $field->$_ work with. I'm trying to break the
above code so that I can understand. But I failed. Could you please
help generate a minimal example to help me understand the above usage
of "grep {$field->$_}"?