> 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.
In reply to Re: Re: strip until blank line
by Dominus
in thread strip until blank line
by the_slycer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |