force recursive source filtering

Discussion in 'Perl' started by Andrew Schulman, Dec 24, 2008.

  1. I want to apply a source filter, via say Filter::Simple, not just to a
    particular source file, but to all of the source files that it may do, require,
    or use. E.g., if I've built a source filter in mySourceFilter, then in

    use mySourceFilter;
    use custommodule;
    print ...

    the code that resides in the above source file will be filtered, but the code
    that it reads in from custommodule.pm will not. This is what
    http://perldoc.perl.org/perlfilter.html says, and my observation confirms it.

    What I want is to modify the do, require, and use statements to automatically
    apply mySourceFilter to every file they load. But I don't know how.

    Anyone done this? Suggestions?
    Thanks,
    Andrew.

    --
    To reply by email, change "deadspam.com" to "alumni.utexas.net"
    Andrew Schulman, Dec 24, 2008
    #1
    1. Advertising

  2. > The newsgroup comp.lang.perl is defunct. Try comp.lang.perl.misc.

    Thank you.
    Andrew.

    --
    To reply by email, change "deadspam.com" to "alumni.utexas.net"
    Andrew Schulman, Jan 1, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas
    Replies:
    1
    Views:
    1,617
    Tuukka Toivonen
    Dec 2, 2003
  2. Jon Sequeira
    Replies:
    3
    Views:
    4,143
    gerry
    Jun 26, 2003
  3. n00m
    Replies:
    12
    Views:
    1,104
  4. vamsi
    Replies:
    21
    Views:
    2,052
    Keith Thompson
    Mar 9, 2009
  5. Andrew Schulman

    force recursive source filtering

    Andrew Schulman, Dec 28, 2008, in forum: Perl Misc
    Replies:
    5
    Views:
    147
    Andrew Schulman
    Jan 7, 2009
Loading...

Share This Page