yedukondalu has asked for the wisdom of the Perl Monks concerning the following question:
Hi all .I need to add employee details to a hash,i mean i need employe id as key and i need to move all other details to be value storing them in a list. i tried this.
When i tried this the size of array is stored in the value. I tried passing (\@employee_details) i.e reference of list but i cant access the list.%database; @employee_details=($employee_name, $employee_salary,$employee_ph,"\n" +); $database{$employee_id}=(@employee_details);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tring to write script to add and get employee details to hash
by toolic (Bishop) on Mar 27, 2015 at 13:29 UTC | |
|
Re: Tring to write script to add and get employee detials to hash
by Anonymous Monk on Mar 27, 2015 at 13:35 UTC | |
by yedukondalu (Acolyte) on Mar 27, 2015 at 13:58 UTC | |
by Anonymous Monk on Mar 27, 2015 at 14:51 UTC | |
by jeffa (Bishop) on Mar 27, 2015 at 16:30 UTC | |
by Anonymous Monk on Mar 27, 2015 at 17:31 UTC | |
by Anonymous Monk on Mar 29, 2015 at 19:44 UTC |