mosh has asked for the wisdom of the Perl Monks concerning the following question:
Maybe the subjest isn't so clear, I'll try to explain:
I have a script that is loaded dynamically and contains, few includes.
The script also contains "use Filter::Include" line.
I'd like to save a global parameter that keeps the current read file.
It doesn't have to be a global parameter, I just want to print to screen every time the interpreter moves to another include file.
Do anyone have an idea how to do it ?
TIA,
Mosh.
Update: Finally I found a way to improve the Filter-Include package !
The inprovement is made by adding dedicated function to the Fiter-Include dump file and catch it by AUTOLOAD sub.
Working great !!
If anyone is intrested in the improvement, let me know.
Mosh.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I'd like to have an indication when the interpreter moves to the next file (using Filter-Include)?
by blazar (Canon) on Jul 14, 2005 at 11:18 UTC | |
|
Re: I'd like to have an indication when the interpreter moves to the next file (using Filter-Include)?
by broquaint (Abbot) on Jul 14, 2005 at 13:41 UTC | |
by mosh (Scribe) on Jul 14, 2005 at 14:25 UTC | |
|
Re: I'd like to have an indication when the interpreter moves to the next file (using Filter-Include)?
by artist (Parson) on Jul 14, 2005 at 11:26 UTC | |
by mosh (Scribe) on Jul 14, 2005 at 12:19 UTC |