Question : Simple Routine Fails

Hi all

this routine fails to find image # 3 and 5 for some reason. I cant seem to figure out why all image files a correct on server checked multiple times
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
my @TotalImageCount = (2..5);
my $ItemsID = "112233445566";

foreach my $ImageCount (@TotalImageCount){

print "Look For |../httpdocs/Pics/$ItemsID-$ImageCount\_lrg|<br>";

  if($ImageName = <../httpdocs/Pics/$ItemsID-$ImageCount\_lrg.*> ){
  print "FOUND: |../httpdocs/Pics/$ItemsID-$ImageCount\_lrg|<br>";
  }

}


RESULT:

Look For |../httpdocs/Pics/112233445566-2_lrg|
FOUND: |../httpdocs/Pics/112233445566-2_lrg|
Look For |../httpdocs/Pics/112233445566-3_lrg|
Look For |../httpdocs/Pics/112233445566-4_lrg|
FOUND: |../httpdocs/Pics/112233445566-4_lrg|
Look For |../httpdocs/Pics/112233445566-5_lrg|

Answer : Simple Routine Fails

Both use port 1433.
Random Solutions  
 
programming4us programming4us