Stephen
02-22-1999, 12:46 AM
I have a problem understanding how to save associative arrays to file on this system. I'm relatively new to perl and a real tyro when it comes to perl AND Unix. I've been learning perl on Win95 and using the dbmopen function to save my hashes. However, that doesn't appear to work here.
Instead of creating .dir and .pag extension dbm files I'm getting .db extensions on the FQ server. So here's my question: what do other users do to save hashes to file here? I want to be able to use the same function on Win95 as here under Unix (or Linux, or whatever it may be). Should I be using the tie package (as in the Tie::Hash module)? At the moment that's all I can see that might be cross-system compatible. I don't understand tie() yet, so I thought I'd ask how others handle this problem before turning my attention to figuring the in's and out's of a new module.
Thanks,
Stephen
Instead of creating .dir and .pag extension dbm files I'm getting .db extensions on the FQ server. So here's my question: what do other users do to save hashes to file here? I want to be able to use the same function on Win95 as here under Unix (or Linux, or whatever it may be). Should I be using the tie package (as in the Tie::Hash module)? At the moment that's all I can see that might be cross-system compatible. I don't understand tie() yet, so I thought I'd ask how others handle this problem before turning my attention to figuring the in's and out's of a new module.
Thanks,
Stephen