in reply to One line assigment statement with regex match

Looking at your code, it's hard to tell which of several different things you're trying to do. Can you explain what you're trying to do and why in more detail?
  • Comment on Re: One line assigment statement with regex match

Replies are listed 'Best First'.
Re^2: One line assigment statement with regex match
by ketema (Scribe) on Jun 22, 2005 at 21:48 UTC
    I have an array of literal strings, words. as I read through a file i want to check the current line against my array of terms. if there is a match I want to assign that match to a varaible. I was wondering if I could do that in one statement.