in reply to Re: Filepointer of source file inside source filter
in thread Filepointer of source file inside source filter

Hmmm... I guess I should have mentioned I want to do all of this at compile time without the need of any external file store, because otherwise I might as well use AutoLoader ;-).

I guess it will come down to reading the source file until the invoking line is encountered and recording that file pointer. That shouldn't be too bad as the load.pm source filter should be the first for that module, and consequently is located somewhere near the beginning of the source.

Wish someone would have a better idea, though (apart from hacking it into Perl itself, which might be an option).

Liz

  • Comment on Re: Re: Filepointer of source file inside source filter