Gossamer Forum
Home : Products : DBMan : Installation :

$datapath

Quote Reply
$datapath
What is the correct way to define (in a Perl script) a file or directory's location, in relation to the location of the file which defines the path, if the two exist in the same directory?

Is it "" or "." or "/" or "./" ?

TIA
Alan

[This message has been edited by Alan33 (edited April 24, 2000).]

[This message has been edited by Alan33 (edited April 24, 2000).]
Quote Reply
Re: $datapath In reply to
Well I know that within db.cgi it uses:

$db_script_path = ".";

For any other script I have used within the same directory such as /cgi-bin I just call the script name and put nothing ahead of it.

Hope this helps Smile
Quote Reply
Re: $datapath In reply to
<hope this helps>
Lois,
It certainly did. Thanks! This is the first script I've come across that has used "." to specify a file in the same directory.

Curious subject!

Alan