in reply to Reg-Ex, range, and Exists...

You could make a string containing joined list of the values from the hash like this: $altrenative = join '|', values %hash. And then use it in the regexp in place of $hash{$ANY-KEYS-IN-THE-HASH}.

Update: The answers above me make the expression match when in the line there is a key from the hash, mine matches when there is some value from the hash. From the question I cannot say which one is correct.

Replies are listed 'Best First'.
THANKS!
by unwashed_masses (Initiate) on Mar 12, 2003 at 19:37 UTC

    you've all given me much to think on.
    thanks!!

    - dhj
    -----------------------------
    I'm Immortal. So far, anyway.