in reply to Re: strip until blank line
in thread strip until blank line
> last if (/^+s$/);I think you still need to learn to test. That line matches the strings "s", "s\n", and nothing else.
>
> Whoops! Must learn to test.
Maybe you wanted last if /^\s*$/. But I would have written last unless /\S/ instead.
|
|---|