in reply to I'd like to have an indication when the interpreter moves to the next file (using Filter-Include)?

Not sure if this is going to help, but here it is anyway.
{ my $count = 0; sub counter { $count ++; print "Included File # $count\n"; } } require "file.pl" && counter(); require "file2.pl" && counter();
--Artist
  • Comment on Re: I'd like to have an indication when the interpreter moves to the next file (using Filter-Include)?
  • Download Code

Replies are listed 'Best First'.
Re^2: I'd like to have an indication when the interpreter moves to the next file (using Filter-Include)?
by mosh (Scribe) on Jul 14, 2005 at 12:19 UTC
    Nope...

    As I see, there will be no option, but to change the Filter::Include, I think that I'll add before the conversion (it convert the script with the includes, to one big script that contains in it all the source of the include files), a dedicated command that will be an indication for begin of new include file, and catch it with AUTOLOAD sub

    What do you think ?