[pm-h] Next month's topic

G. Wade Johnson gwadej at anomaly.org
Tue Mar 21 18:17:03 PST 2006


On Tue, 21 Mar 2006 07:34:00 -0600
Mike Flannigan <mikeflan at earthlink.net> wrote:

> 
> I pass this on long ago.  This reg expression method is
> valuable for reading many types of files:
> 
> next unless ($_ =~
> /^[^\t]*\t[^\t]*\t[^\t]*\t[^\t]*\t[^\t]*\t[^\t]*\t[^\t]*\tAR\t/i);

Oh, the "next unless line_test" technique. One of my favorite variations of
this is:

  next unless /\S/;

for skipping blank lines.

That's a really good technique to remind people about.

G. Wade
-- 
Virtual is when it's not but it looks like it is and transparent is when it
is but it looks like it isn't.                      -- Rick Hoselton


More information about the Houston mailing list