in reply to Re: Re: grep -p ?
in thread grep -p ?

Just turn on paragraph mode then.
#!/usr/bin/perl use strict; use warnings; $/ = ""; # Paragraph mode. while (<DATA>) { print if /lazy/; } __DATA__ the quick red fox jumped over the lazy brown dog. jumped over the lazy brown dog.

Abigail

Replies are listed 'Best First'.
Re: Re: grep -p ?
by arootbeer (Novice) on Dec 09, 2003 at 17:36 UTC
    That's what I was looking for, thanks. I went back to the camel and found the $/ variable; I had glanced past it when I was looking for this one. (The explanation there is "If set to the null string, it treats blank lines as delimiters.")

    Thanks again!