B
burdrs
I have a hash that I created:
@uniq=qw(a b c e f g);
my $list;
my @list = @uniq;
@hash{@list} = ();
I now want to check if the following pairs are contained within the
hash:
a b (yes, it is)
a h (no, it isn't)
b g (yes, it is)
I would like the output contain the pair number (e.g., pair a b is the
first pair, a h the second, etc.) and either 1 or 0 to indicate
membership:
1.1 2.0 3.1
Sorry if this question is really basic. I've study old message and the
FAQ for hours with not luck.
Thanks.
Thanks.
@uniq=qw(a b c e f g);
my $list;
my @list = @uniq;
@hash{@list} = ();
I now want to check if the following pairs are contained within the
hash:
a b (yes, it is)
a h (no, it isn't)
b g (yes, it is)
I would like the output contain the pair number (e.g., pair a b is the
first pair, a h the second, etc.) and either 1 or 0 to indicate
membership:
1.1 2.0 3.1
Sorry if this question is really basic. I've study old message and the
FAQ for hours with not luck.
Thanks.
Thanks.