On 13 April 2012 08:37, Ashley Hoff <ah...@dataaction.com.au> wrote: > ** > > Howdy Fellow Win32 Perl users. > > At the moment we are in the process of modding a few file munging app’s > to make them Cross platform – this means taking the existing Perl from > our Unix based servers, making them compatible with Win32, compiling using > PDK and then modding some existing Windows apps (VB 6) to call the > compiled Perl. (We are using the existing VB apps, as apparently Ops can’t > use command line and don’t like change L ) > > Everything seems to work fine until you navigate to a file via the > Windows front end, which then changes the current path to where ever the > file is located, which the Perl app is picking up on. This is an issue > as I want to write a report to a subdirectory of where the app is, not > where the files are found. > > I have overcome the issue at the moment using Cwd 'abs_path' and > abs_path($0), then using a substitute to re-construct the path of where > the Reports are to go. > > What I would like to know, is there a way that Perl can keep in control of > its current path? Or is this something that I should get our VB guru’s > to look at? (they have asked me to fix it in the Perl…..???? Maybe they > are just being lazy) >
Haven't checked, but what does http://perldoc.perl.org/FindBin.html report out from the Perl exe in comparison to getcwd? Just in
_______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs