Click here to get back home

Printing xlated output of Filter::Simple ?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Printing xlated output of Filter::Simple ? Dean Arnold 11-13-2004
Get Chitika Premium
Posted by Dean Arnold on November 13, 2004, 6:15 pm
Please log in for more thread options
Can't find anything obvious, hope someone here can help...

I'm writing a Filter::Simple module for embedded SQL
(SQL::Preproc), and would like to dump out the xlated source
outside of the debugger (ala a preprocessor). The only reference
I can find to such a feature is Acme::Pythonic's debug
flag.

Do I have to implement my own emitter, or is there some
perl or Filter::Simple switch I'm overlooking ?

TIA,
Dean Arnold
Presicient Corp.


Posted by Xavier Noria on November 21, 2004, 1:32 pm
Please log in for more thread options

> I'm writing a Filter::Simple module for embedded SQL
> (SQL::Preproc), and would like to dump out the xlated source
> outside of the debugger (ala a preprocessor). The only reference
> I can find to such a feature is Acme::Pythonic's debug
> flag.

There's Filter::tee, which writes the generated code into a file.

Acme::Pythonic's trivial trick is slightly different because avoids
the execution of the generated code (often malformed when you are
debugging anyway), and just dumps it to stdout. So, you fix something
in the filter, run a test, and see quickly, right there the result.

-- fxn


Posted by Xavier Noria on November 22, 2004, 12:45 am
Please log in for more thread options
fxn@hashref.com (Xavier Noria) wrote in message
>
> > I'm writing a Filter::Simple module for embedded SQL
> > (SQL::Preproc), and would like to dump out the xlated source
> > outside of the debugger (ala a preprocessor). The only reference
> > I can find to such a feature is Acme::Pythonic's debug
> > flag.
>
> There's Filter::tee, which writes the generated code into a file.

There's Filter::ExtractSource as well.

-- fxn


Similar ThreadsPosted
Printing Expect.pm debug output to another filehandle? January 11, 2005, 5:35 pm
Filter::Simple bug? December 21, 2004, 9:54 pm
Template-Toolkit: Flushing Output or Incremental Output, how? September 13, 2007, 2:45 pm
opendocument -> csv filter ? September 20, 2006, 10:28 am
Email::Filter hello world August 15, 2004, 3:36 pm
where can download Filter::netcrypt February 22, 2005, 9:55 pm
Perl Tk::FBox and filter argument January 30, 2007, 2:40 pm
can apache::filter work with virtual location? July 28, 2007, 10:36 pm
Printing of PDF Files July 12, 2004, 4:55 pm
PDL: Printing Matrices November 22, 2004, 10:53 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap