User Profile

Collapse

Profile Sidebar

Collapse
sally123
sally123
Last Activity: May 31 '12, 04:46 AM
Joined: Mar 1 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sally123
    replied to Hash of arrays
    in Perl
    Hello,
    The thread you recommended does not directly answer my question. I hope you will be able to help me.

    The programming language I am using is perl.

    I have the following:
    %a=(A1=>[UP1,UP3,UP6],
    A2=>[UP1,UP6],
    A3=>[UP2,UP10],
    );

    %b=(UP1=>[UP2,UP3,UP7],
    UP2=>[UP10,UP9,UP3],
    UP5=>[UP1,UP11],
    );

    Please keep in mind that the keys are...
    See more | Go to post

    Leave a comment:


  • Comparing hash of arrays

    Hello,
    I have a different question on hash of arrays.
    The programming language I am using is perl.

    I have the following:
    %a=(A1=>[UP1,UP3,UP6],
    A2=>[UP1,UP6],
    A3=>[UP2,UP10],
    );

    %b=(UP1=>[UP2,UP3,UP7],
    UP2=>[UP10,UP9,UP3],
    UP5=>[UP1,UP11],
    );

    Please keep in mind that the keys are different,...
    See more | Go to post

    Leave a comment:


  • sally123
    started a topic Hash of arrays
    in Perl

    Hash of arrays

    I want to compare 2 hashes of arrays in the following manner:

    Example:
    %hoa=(A1=>[UP1,UP3,UP6],
    A2=>[UP1,UP6],
    A3=>[UP2,UP10],
    );
    %hoadip=(UP1=>[UP2,UP3,UP7],
    UP2=>[UP10,UP9,UP3],
    UP5=>[UP1,UP11],
    );
    Question:
    1. Compare the values of %hoa with the keys of %hoadip
    2. Then for each key matched, compare the values...
    See more | Go to post
No activity results to display
Show More
Working...