Brian Ling said: > Thanks for that, > > I'll go with the File::Basename option as I may need to change the 'pwd' > by the time the call is made.
What you really want is the FindBin module. perldoc FindBin >> > I have the following bit of code that works out the >> directory path to >> > the currently executing script. >> > >> > My $path = $0; >> > $path =~ s#(^/.+/).+$#$1# ; >> > >> > This works but doesn't make me happy, is there a better way? -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]