Home: Perl Programming Help: Advanced:
hijack subs?



ArP
New User

Nov 26, 2008, 2:44 AM


Views: 1762
hijack subs?

Good morning ppl,

im looking for a way to interfere with subroutines.
basically i wanna run a code before entering the sub and at the closure. consistently hijack all subroutines in my app

I guess this wouldnt be a problem to do manually..
but im looking at >5000 subs and god knows how many recursions below.
as of today im not so keen to labour work :)

The inserted code is for self designed performance tuning and mapping purpose, so it requires quite high accuracy

Any ideas would be much appreciated.

cheers,

Fredrik


ArP
New User

Nov 26, 2008, 6:12 AM


Views: 1758
Re: [ArP] hijack subs?

solution found..
the excellent Sub::WrapPackages saved the week

Cheers,