Re: Current Directory when test.pl runs ?

From: Brian McCauley (nobull_at_mail.com)
Date: 12/14/04


Date: Tue, 14 Dec 2004 22:32:29 +0000

Peter Billam wrote:

> Greetings. When test.pl is invoked, by all the various things
> that invoke it, is it reliably in the current directory ?

No.
>
> I'd like to be able to say (in test.pl) e.g.
>
> require './Bar.pm'; import Foo::Bar;
> so that when I'm editing and debugging Bar.pm I know I'm testing my
> latest work.

> Or should I use simply
>
> use Foo::Bar;
>
> but then not be quite sure if I'm testing a previously installed version ?

When testing you should simply set PERL5LIB



Relevant Pages

  • Re: Bug hides under Olly debug!
    ... Funny thing is that when I run without CLP on Olly debugger it ... > invoke GetCommandLine ... > invoke FileTimeToDosDateTime, addr WinFileTime, addr DosDate, ... debugging info when you are not running Olly. ...
    (comp.lang.asm.x86)
  • Re: python is going to die! =(
    ... > What does an IDE really do beyond editing + debugging? ... > Python's dynamic nature, I've never needed a debugger, print statements ... As for editing, well, I like Vim. ... did have AREXX linkages so that the compiler error report ...
    (comp.lang.python)
  • Changes are not allowed while code is running... (VS2005)
    ... I'm running a project and go to make a small change in the editor while ... editing. ... I find it difficult to remember to always kill the app or "Stop Debugging" ... Prev by Date: ...
    (microsoft.public.vsnet.ide)
  • VS2005 Annoyance: Changes are not allowed while code is running...
    ... I'm running a project and go to make a small change in the editor while ... editing. ... I find it difficult to remember to always kill the app or "Stop Debugging" ... Prev by Date: ...
    (microsoft.public.vstudio.development)
  • Re: Which develop tool do you use for linux?
    ... > develop tool to help the programmer finish tasks quickly by integrate all ... > the functions include editing, compiling and debugging together. ...
    (comp.os.linux.development.apps)