Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populating a hash of a hash of a hash of an array

Status
Not open for further replies.

mwhamilton

Technical User
Jan 28, 2002
11
US
Hi, this is still going to sound crazy. I have a hash that looks like this:
%Total_Hash = (
"project_name" => {
"group_name" => {
"username" => [hours, percent],
"username2"=> [hours, percent],
"username3"=> [hours, percent],
},
"group_name2" => {
"username4" => [hours, percent],
},
"group_name3" => {
"username5" => [hours, percent],

},
},

"project_name2" => {
"group_name" => {
"username1" => [hours, percent],
"username2" => [hours, percent],
},
"group_name2" => {
"username4" => [hours, percent],
},
"group_name3" => {
"username5" => [hours, percent],
},
},
);

I am reading data from an inputfile with the variables project, group, username, and an array with [hours, percent]. As I read the inputfile while(<inputfile>), I need to populate the hash(of a hash of a hash on an array) with those variables. Please help! Thanks in advance!


 
In order to help you, we need more details on the format of the input file. A sample input file would be very helpful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top