Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: Finding out which of a list of patterns matched

by Not_a_Number (Prior)
on Jan 22, 2006 at 17:55 UTC ( [id://524817]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Finding out which of a list of patterns matched
in thread Finding out which of a list of patterns matched

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

  • Comment on Re^5: Finding out which of a list of patterns matched

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://524817]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-18 06:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found