my @TotalImageCount = (2..5);
mein $ItemsID = „112233445566“;
foreach mein $ImageCount (@TotalImageCount) {
Druck „suchen |. /httpdocs/Pics/$ItemsID-$ImageCount \ _lrg| “;
wenn ($ImageName = <. /httpdocs/Pics/$ItemsID-$ImageCount \ _lrg.*>) {
Druck „FAND: |. /httpdocs/Pics/$ItemsID-$ImageCount \ _lrg| “;
}
}
RESULTAT:
Suchen |. /httpdocs/Pics/112233445566-2_lrg|
GEFUNDEN: |. /httpdocs/Pics/112233445566-2_lrg|
Suchen |. /httpdocs/Pics/112233445566-3_lrg|
Suchen |. /httpdocs/Pics/112233445566-4_lrg|
GEFUNDEN: |. /httpdocs/Pics/112233445566-4_lrg|
Suchen |. /httpdocs/Pics/112233445566-5_lrg|
|