logo       

Re: [pm-h] Next month's topic: msg#00003

lang.perl.perl-mongers.houston

Subject: Re: [pm-h] Next month's topic

On Tue, 21 Mar 2006 07:34:00 -0600
Mike Flannigan <mikeflan@xxxxxxxxxxxxx> 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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise