Exactly! A hash slice, but i would also use an array for the field names:
# untested my @fields = qw( partner kampagne keywordCluster keyword clicks leads orders jaronVerguetung partnerVerguetung profit ); @fields{@fields} = $csvIn->extract(@fields);
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to Re^2: Text::xSV question - could this be written better?
by jeffa
in thread Text::xSV question - could this be written better?
by tphyahoo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |