In sub html_record, instead of
foreach $file (@files) {
if ($file =~ /^$file_test/) {
Try
if ((lc($file) eq ($rec{$db_key}. ".gif")) || (lc($file) eq ($rec{$db_key}. ".jpg"))) {
Technically, the original code should work, but it doesn't seem to be working for you, so this is plan B.
No, the Image Dimensions thing didn't work and I couldn't make it work. Maybe I can see about doing it again, but not right now.
I still have my Amiga. It hasn't been turned on in more than five years, but I still have it. I have hopes of someday being able to use it again. :-)
JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Code:
$file_test = $rec{$db_key} . "."; foreach $file (@files) {
if ($file =~ /^$file_test/) {
Try
Code:
foreach $file (@files) { if ((lc($file) eq ($rec{$db_key}. ".gif")) || (lc($file) eq ($rec{$db_key}. ".jpg"))) {
Technically, the original code should work, but it doesn't seem to be working for you, so this is plan B.
No, the Image Dimensions thing didn't work and I couldn't make it work. Maybe I can see about doing it again, but not right now.
I still have my Amiga. It hasn't been turned on in more than five years, but I still have it. I have hopes of someday being able to use it again. :-)
JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.