DBM Files

2001-05-23 Thread David Michael
I have a dbm file that i am trying to work with here. I am working with an established format : user = tagname: value\n tagname: value\n tagname: value\n... The problem I am having is where I try to retrieve that value of the tagname. dbmopen %PROXY, "$proxy", 0666 or die "Can'

Split()

2001-05-23 Thread David Michael
I need help. I am a newbie. I am frustrated. I am working with a dbm file. It has data in it. The data is formatted in this way: key = name: parameter\n name: parameter\n name: parameter\n I want to get rid of the 'name' and just get the 'parameter'. The parameter may have spaces in it,

Sorting a hash by value, and displaying the key

2001-05-31 Thread David Michael
Hello, I have a hash that needs to be displayed in a certain order. I tried foreach $key (sort (keys %HASH)) { print $key; } that sorts alphabetically. I need it in the order it was inserted, so I made the value a number that increased for each key. I need to sort by

Packages/Modules

2001-06-01 Thread David Michael
I am trying to use a package to hold all of my subs. I am calling the package in my main program: use control; In control.pm I have package control; at the top and 1; at the bottom. This is what the problematic area looks like: %USERINFO = control::memUserInfo($user); # Returns %PROXYINF