> How can I recall only certain keys and their corresponding values of hashes
> ex : if D_103 then print " D_103 value is 2"
> ex :if D_101 then print "D_101 value is 0"
You may be looking for this:
print "$_ value is $mycoolhash{$_}\n" if exists($mycoolhash{$_});
or more classically:
if (
On Thu, Aug 6, 2009 at 11:49 AM, Telemachus wrote:
> On Thu Aug 06 2009 @ 11:19, jet speed wrote:
> > @array1 = ( D_101 D_102 D_103 D_104);
> > @array2 = (0 1 2 3);
> >
> >
> > How can i convert both of these arrays into %hash, assigining the
> > @array1 as keys and @array2 as values.
>
>use
On Thu Aug 06 2009 @ 11:19, jet speed wrote:
> @array1 = ( D_101 D_102 D_103 D_104);
> @array2 = (0 1 2 3);
>
>
> How can i convert both of these arrays into %hash, assigining the
> @array1 as keys and @array2 as values.
use warnings;
use strict;
my @array1 = qw/D_101 D_102 D_103 D_
jet speed wrote:
Hi,
Hello,
I have a query on converting arrays into hash.Please could you help me
resolve the below.
I have 2 arrays as bleow.
@array1 = ( D_101 D_102 D_103 D_104);
@array2 = (0 1 2 3);
How can i convert both of these arrays into %hash, assigining the
@array1 as keys and
Hi,
I have a query on converting arrays into hash.Please could you help me
resolve the below.
I have 2 arrays as bleow.
@array1 = ( D_101 D_102 D_103 D_104);
@array2 = (0 1 2 3);
How can i convert both of these arrays into %hash, assigining the
@array1 as keys and @array2 as values.
How can I