Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: One line assigment statement with regex match

by rev_1318 (Chaplain)
on Jun 22, 2005 at 21:41 UTC ( #469209=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ($match) = grep { $lineFromSomeFile =~ $_ } @terms;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2021-04-10 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?