On Aug 15, 10:43 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > Rob Dixon wrote: > > > I am sorry, but even that work around won't help. I have downloaded a copy > > of > > Perl Express and I see that it is not running your script at all when you > > are > > debugging. If you look in $0 you will see that it contains > > > C:\Program Files\Perl Express\Debug\temp1.cgi > > > so what is running is a different program altogether. Perl Express has > > copied > > your source to its own Debug directory, heavily modified it to support its > > debugging tools, and even renamed it beyond recognition. As far as I can > > tell > > you don't stand a chance of getting this working under this debugger, sorry! > > > At least it should work for your users. > > I'm sorry for keeping changing my mind, but I am slowly learning Perl Express. > The good news is that I have a solution for your problem. If you look in the > Perl menu and click on the Execution Directory item you will see an option > called Set Execution Directory by Active Script. Make sure this option is > checked and Perl Express does a little magic (just a chdir presumably) to make > the program run in the right context. Now you can write > > my $fil = 'pdef.txt'; > open my $defile, '<', $fil or die "Couldn't open pdef file - $!"; > > and the data file will be found correctly. Just as it always would have been > before for anyone not using a debugger! > > HTH, > > Rob
Thanks a lot. it works. jis -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/