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. Advertisements

  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. Advertisements

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. ~~~ .NET Ed ~~~
    Replies:
    1
    Views:
    4,437
    Cowboy \(Gregory A. Beamer\)
    Feb 26, 2005
  2. Marcus Leon
    Replies:
    5
    Views:
    811
    Marcus Leon
    Feb 3, 2005
  3. Cloud Burst
    Replies:
    11
    Views:
    1,694
  4. Author Tarun Tyagi
    Replies:
    0
    Views:
    1,059
    Author Tarun Tyagi
    Dec 29, 2004
  5. Guido Belligoi
    Replies:
    2
    Views:
    592
    Guido Belligoi
    Oct 19, 2006
  6. n00m
    Replies:
    12
    Views:
    1,396
  7. vamsi
    Replies:
    21
    Views:
    2,563
    Keith Thompson
    Mar 9, 2009
  8. Andrew Schulman

    force recursive source filtering

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