in reply to Re: source filters in eval
in thread source filters in eval

Isn't that because you used the expression (quoted) form of eval? The code would have already been compiled and (I think) source filters are applied at compile time. What happens if you try a block style eval?

Replies are listed 'Best First'.
Re: Re: Re: source filters in eval
by powerman (Friar) on Feb 25, 2003 at 18:17 UTC
    You right, but I can't use block style eval. I need to eval code located in other file and content of this file should be preprocessed first in some way... As trivial example I need to load this code in temporary package and import some function (from other module) into this package:
    $content = `cat somefile.pl`; eval "package $TEMPPACKAGE;". "use Some::Module qw(somefunctions);". $content;