Perl: the Markov chain saw | |
PerlMonks |
Re^5: Finding out which of a list of patterns matchedby Not_a_Number (Prior) |
on Jan 22, 2006 at 17:55 UTC ( [id://524817]=note: print w/replies, xml ) | Need Help?? |
By "my method" I meant using capturing parentheses and $1 to retrieve the match, instead of $#-. Sorry for any misunderstanding. My quibble was with your use of a dispatch table, not with the rest of your code. But regardless of that, what's the problem with a long dispatch table? I have no issue with the use of dispatch tables per se, long or otherwise. What I meant to point out was that there is absolutely no need for a dispatch table in the context of the OP. dave
In Section
Seekers of Perl Wisdom
|
|