lazy_cod3R
01-26-2001, 09:20 PM
can the simple perl database hold more then one value for every key.
i want to try to get perl interface with a database using the dbi module and i could try it at home but the server where i wanna upload my script to doesn't have the dbi module installed, i dont really need a database which is that complex (i dont need foreign keys or anything like that) but complex enough so that for every key i can store more then one value.
(and i dont want to use textfiles because i just want to try something new )
i tried doing
dbopen(.....)
TNAME{"first"}=@name
but that would store the size of the array instead of the array itself.
i was going to try storing a reference to an array as the value but obviously once the program has finished executing the reference would have no use when i want to use the database again later on.
is it even possible to store more then one value for the simple built in perl database ?
another qstn i have is if i move my script to another server the data on database hosted on the old server will obviously be left there am i correct in assuming this ? , would ther be any way of importing it to the new server or will my only option be to write all the data to textfiles and maybe write another script to re-input them when i move to the new server .
thanx for any help
[This message has been edited by lazy_cod3R (edited 26 January 2001).]
i want to try to get perl interface with a database using the dbi module and i could try it at home but the server where i wanna upload my script to doesn't have the dbi module installed, i dont really need a database which is that complex (i dont need foreign keys or anything like that) but complex enough so that for every key i can store more then one value.
(and i dont want to use textfiles because i just want to try something new )
i tried doing
dbopen(.....)
TNAME{"first"}=@name
but that would store the size of the array instead of the array itself.
i was going to try storing a reference to an array as the value but obviously once the program has finished executing the reference would have no use when i want to use the database again later on.
is it even possible to store more then one value for the simple built in perl database ?
another qstn i have is if i move my script to another server the data on database hosted on the old server will obviously be left there am i correct in assuming this ? , would ther be any way of importing it to the new server or will my only option be to write all the data to textfiles and maybe write another script to re-input them when i move to the new server .
thanx for any help
[This message has been edited by lazy_cod3R (edited 26 January 2001).]