I can't see anything wrong with your code. Dumb question time: is one of the
$hashkeys that you print in the foreach loop and
exact duplicate of
"$issuer" . ".PUBLIC"? If not, you'll autovivify the hash entry, which I am guessing will be written to the file, but of course have no value. As a result, you'll have nothing in
$val.
Show us your output. What's in $issuer? We'll need to see that to really give good feedback.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.