in reply to File Parsing

By exclude "new lines" I assume you mean "blank lines" ?
while (<>) { if (my $stat = /^group:/../^data:/) { print unless /^\s*$/ or $stat == 1 or $stat =~ /E/; } }
Update:Fixed during pfaut's reply to this node :-)

Replies are listed 'Best First'.
Re: Re: File Parsing
by pfaut (Priest) on Dec 07, 2002 at 01:04 UTC

    I think he only wanted the lines between the group and data lines. Your version prints out those lines.

      Yes I did,
      Thank You