Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: One line assigment statement with regex match

by TedPride (Priest)
on Jun 22, 2005 at 21:43 UTC ( #469213=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2021-04-22 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?