redingtonct
Technical User
I have a config file that defines the location of a database upon which a perl script acts.
Everything works if the path to said database is relative (e.g. "../directory/database.txt"), but I need to change the path to a URL like " That, however, doesn't work, as the perl script cannot find/access the database.
Is it possible to access a database with such a URL?
If so, what the the appropriate syntax for doing so?
-------
For reference:
In the config file, this is the line that defines the location of the databse:
$database = "
In the perl script, this is the line that gives the error:
open(DB, $database) or die "Line 296: Error opening file: $!\n";
Everything works if the path to said database is relative (e.g. "../directory/database.txt"), but I need to change the path to a URL like " That, however, doesn't work, as the perl script cannot find/access the database.
Is it possible to access a database with such a URL?
If so, what the the appropriate syntax for doing so?
-------
For reference:
In the config file, this is the line that defines the location of the databse:
$database = "
In the perl script, this is the line that gives the error:
open(DB, $database) or die "Line 296: Error opening file: $!\n";