Here is where I think the prob is:
@key_array = keys %pers_dcr_files;
my(@graphic) = ();
my(@url) = ();
for ($i=0; $i<2; $i++) {
$key = $key_array[$i];
$graphic[$i] = $pers_dcr_files{$key}{SmallGraphic};
$url[$i] = $pers_dcr_files{$key}{LinkURL};
if (("$graphic[$i]" ne "") && ("$url[$i]" eq "")) {
$name = generate_link_name($pers_dcr_files{$key}{RightNavL
+aunchDate}, $pers_dcr_files{$key}{RightNavExpirationDate}, 'p', $pers
+_dcr_files{$key}{PromotionName});
$url[$i] = generate_url_path($name);
}
}
This basically trying to take the first two keys out of a hash and pass a few of the values from the specified key into another routine. I can include the two routines that are called as well if you would like.