
miller
User
Jun 29, 2011, 3:10 PM
Post #2 of 3
(503 views)
|
|
Re: [zatlas1] Odd number of elements in hash assignment
[In reply to]
|
Can't Post
|
|
You're trying to assign a hash to a scalar. Instead, assign a hash reference.
$TransID{'hvalcod'} = \%valcod; return %TransID; In the main program:
my %MainTransID = func(); my %Mainvalcod = %{$MainTransID{'hvalcod'}}; - Miller
|