Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 rifling through the Monastery: (5)
As of 2020-05-25 15:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (146 votes). Check out past polls.

    Notices?