If you call your script from the command line and pipe the output to a file:

$ perldl - script.pl >output

Then you can search for the AutoLoader lines:

$ grep Loading output

It's not as nice as using a profiler, but if there's only one way to go 
through the script, then it doesn't matter so much.  Note that this 
won't pick up any special 'use' commands you have in your .perldlrc.

cheers,
Derek


Matthew Kenworthy wrote:
> I have a PDL script that relies on my private library of pdl
> subroutines, but I don't want to send my complete library over to my
> colleague. Instead, I want to find out all the subroutines called by
> my script, and append them to the end of the original script.
>
> Does anyone know a way to run the script and find out all the
> subroutines called as it runs?
>
> Thanks,
>
> Matt
>
>   


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to