Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Regular Expression tricky newline problem

by Aristotle (Chancellor)
on Jan 03, 2006 at 13:16 UTC ( #520584=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ( $keeper ) = grep /^Line 3 : /, @lines;
    
  2. or download this
    use List::Util qw( first );
    
    my $keeper = first { /^Line 3 : / } @lines;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2014-12-26 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (168 votes), past polls