|Think about Loose Coupling|
Hash asignement with RE and map()by bobione (Pilgrim)
|on Jul 03, 2001 at 22:30 UTC||Need Help??|
bobione has asked for the
wisdom of the Perl Monks concerning the following question:
Here is my mystery:
I'd like to assign a hash to a "complexe" (read big) regular expression.
m/(ID)(name)(email)(title)(date)(...)/ # simplify
I know that I can do that:
(ID, name, email, title, date, ...) = /(ID)(name)(email)(title)(date)(...)/;
but I'd like to do something like that:
Something better could be to use OObject but hey, I am lost...
I hope I am clear enougth,
BobiOne KenoBi ;)