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 "http://myserver.com/database.txt". 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 = "http://myserver.com/database.txt";

In the perl script, this is the line that gives the error:
open(DB, $database) or die "Line 296: Error opening file: $!\n";