----- Original Message ----- From: "Reinhard Pagitsch" <[EMAIL PROTECTED]> To: <perl-xs@perl.org> Sent: Friday, August 12, 2005 11:05 PM Subject: Where is my XS Module located?
> Hello, > > Is there a way to get the path name where the dll is located? > e.g. the dll of my module is in > D:\Perl\site\lib\auto\Win32\File\Summary\Summary.dll > > How can I get the path name, not in the .pm but in the .xs? > D:\Perl\site\lib\auto\Win32\File\Summary > For the first part of the path, I find I can use any one of the following: $Config{sitearchexp} $Config{sitelibexp} $Config{installsitearch} $Config{installsitelib} $Config{sitearch} $Config{sitelib} I think 'installsitelib' would be available and reliable on all Win32 machines. Then that's followed by 'auto', which is in turn followed by the package name split on the '::' . Cheers, Rob