Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: matching first paragraph satisfying condition

by jwkrahn (Monsignor)
on Aug 05, 2019 at 18:09 UTC ( #11103977=note: print w/replies, xml ) Need Help??


in reply to Re: matching first paragraph satisfying condition
in thread matching first paragraph satisfying condition

$ echo " indented not indented bla bla bla not indented yak " | perl -00ne'/^\S/&&print&&exit' not indented bla bla bla

     :)

Replies are listed 'Best First'.
Re^3: matching first paragraph satisfying condition
by 1nickt (Abbot) on Aug 05, 2019 at 18:52 UTC

    Thank you ++ was not familiar with -00


    The way forward always starts with a minimal test.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2020-10-22 13:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (225 votes). Check out past polls.

    Notices?