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?

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. ~~~ .NET Ed ~~~
    Replies:
    1
    Views:
    4,407
    Cowboy \(Gregory A. Beamer\)
    Feb 26, 2005
  2. Marcus Leon
    Replies:
    5
    Views:
    785
    Marcus Leon
    Feb 3, 2005
  3. Cloud Burst
    Replies:
    11
    Views:
    1,662
  4. Author Tarun Tyagi
    Replies:
    0
    Views:
    1,017
    Author Tarun Tyagi
    Dec 29, 2004
  5. Guido Belligoi
    Replies:
    2
    Views:
    566
    Guido Belligoi
    Oct 19, 2006
  6. n00m
    Replies:
    12
    Views:
    1,368
  7. vamsi
    Replies:
    21
    Views:
    2,525
    Keith Thompson
    Mar 9, 2009
  8. Andrew Schulman

    force recursive source filtering

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