wackattack has asked for the wisdom of the Perl Monks concerning the following question:
programming perl page 246 has:
$hashrefA = {
'Adam' =>'Eve',
'Clyde'=>$bonnie,
'Antony' =>'Cleo' . 'patra'
};
I'm trying to print Eve but can't figure it out.
$a1 = $hashrefA->'Adam';
print "a1 = $a1\n";
I've tried many combinations.
Help?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pg 246 of programming perl
by prasadbabu (Prior) on Jun 28, 2005 at 05:24 UTC | |
by jbrugger (Parson) on Jun 28, 2005 at 05:45 UTC | |
|
Re: pg 246 of programming perl
by GrandFather (Saint) on Jun 28, 2005 at 05:46 UTC | |
|
Re: pg 246 of programming perl
by tlm (Prior) on Jun 28, 2005 at 10:35 UTC |