Greg,

Use the M option in the Perl debugger...

perl -d -e 0
M

That will list everything that's been loaded as well as the paths. You might need to step (n) thru your script until you've run the lines with the 'use' statement.

-Bob

At 5:36 PM -0400 4/28/04, Greg London wrote:
Thanks to everyone who gave feedback on my
Parse::Native module. I'm modifying it to
roll in everyone's suggestions.

On a totally unrelatd note:

is there a quick and dirty way to find out where the heck
perl is finding a module being use'ed is located?

This seems to come up often enough that I thought
I'd ask and see if there's a quick fix.

If I have a perl script that says

use MyModule;

I want to know the path to MyModule.pm.

I can manually go through all the @INC and PERLLIB
directories, but I was hoping perl would have a quick
one liner that I could do that would look something
like this:

perl -e "use MyModule; print $magic_var;"

is there something that does this?
Greg

_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm


--

-----------------------------------------------------
Bob Freeman, Ph.D.
Bioinformatics consultant
90 Worcester St., #4
Boston, MA  02118
617/699.7057, vox
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to