http://qs1969.pair.com?node_id=1189183

LanX has asked for the wisdom of the Perl Monks concerning the following question:

Hi

In continuation to Filehandle of the current sourcecode, pointing after last code line? I wrote some (non intrusive) code using Filter::Simple to the source of the current file (actually the lines after the use module )

It's a rather trivial idea but I couldn't find anything similar on CPAN .

Question: Did I reinvent the wheel or should I publish?

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re: Are there any modules using source filter to capture code?
by shmem (Chancellor) on Apr 29, 2017 at 21:53 UTC
    Question: Did I reinvent the wheel or should I publish?

    When in doubt, publish. We'll do the ratings after the fact :-P

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'