Hi,
How can I rearrange an array in a specific order based on the order of a
hash? Something like this:
my @a = qw(Mary John Dan);
print join "\t", @a, "\n";
my %b = ( John => 0,
Dan => 1,
Mary => 2);
print "$_ => $b{$_}\n" for (keys %b);
print "$_-$b{$_}\t" f
Balaji,
next time when you reply please send it reply to the whole group, don't just
sent it to myself. this gives the others a chance to help you.
On Thursday 12 February 2004 20:05, you wrote:
> Hi David,
>
> Thanks for your answer. It is working but I dont know what
> the dot oper
Balaji thoguluva wrote:
> For clarity, I have something like this structure
>
> my $rhash = {
> $rarray => [ ],
> };
>
> I would like to know the length of the anonymous array containing some
> elements.
the usual trick use be used:
#!/usr/bin/per