The stupid question is the question not asked | |
PerlMonks |
Hash asignement with RE and map()by bobione (Pilgrim) |
on Jul 03, 2001 at 22:30 UTC ( [id://93620]=perlquestion: print w/replies, xml ) | Need Help?? |
bobione has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, 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 ;)
Back to
Seekers of Perl Wisdom
|
|