http://www.perlmonks.org?node_id=11103977


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 (Canon) on Aug 05, 2019 at 18:52 UTC

    Thank you ++ was not familiar with -00


    The way forward always starts with a minimal test.