how about s///e? eg:
s/(ID)(name)(email)(title)(date)(...)/%{$hash{$1}}=($2,$3,$4,$5)/ie for @lines;Or something like that. The exact form will depend on whether your re matches keys and values or just values.
update: added caveat
In reply to Re: Hash asignement with RE and map()
by thpfft
in thread Hash asignement with RE and map()
by bobione
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |