Advertisement

06.27.2008 at 08:43AM PDT, ID: 23522034 | Points: 250
[x]
Attachment Details

Modifying hash in perl

Asked by manu_patel in CGI Scripting, Perl Programming Language

Tags: perl, ie7

Hi Guys,
I have hash as given below.
    %hash = (
        key1 => '1',
        key2 => '2',
        key3 => '3',
        key4 => '1',
        key5 => '2',
        key6 => '3',
    );

i want to reorganise or print this hash as something like this ....

1 = key1 and key4
2 = key2 and key5
3 = key3 and key6

plz help me write this code.

Regards,
manuStart Free Trial
[+][-]06.27.2008 at 08:51AM PDT, ID: 21885027

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.29.2008 at 10:39PM PDT, ID: 21896821

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628