go ahead... be a heretic | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You have edited your original posting, which now makes all nodes which answered your original query look totally weird. Please do not do that: it is considered bad form in the Monastery.
Rather either keep the original posting and provide additional information in follow-up nodes or update it but clearly indicate what was changed (hint: use <ins> ...</ins> for insertions and <del> ...</del> for deletions. If we understand your new question, you need to check a list of words against another list of words. If you like to avoid two loops and repeated regex-tests, have a look at Regexp::Keywords (A regexp builder to test against keywords lists), Regexp::Match::List (Matches a string to a list of regular expressions) or Regexp::Assemble (Assemble multiple Regular Expressions into a single RE). CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James In reply to Re: Dynamic if statement
by CountZero
|
|