in reply to Re^2: Writing a parser
in thread Writing a parser

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^4: Writing a parser
by plobsing (Friar) on Jan 29, 2008 at 23:31 UTC
    First, I think you misunderstand what a parser does. For the output you are looking for, a simple filter would suffice. For the example at least. Here's my version of your 'parser'.
    #!/usr/bin/perl -ne print if /\S/ and not /^#/ blah blah blah
    when you run ./script.test, you get:
    blah blah blah