Milka Kuh: Hmmm

Beitrag lesen

HI
ich habe n Perl-Programm gemacht:

#!/usr/bin/perl

$online = "../opensign.gif";
$offline = "../flammeblau.jpg";

print "Content-type: text/html\n\n";
print '<html>';
print '<head>';
print '<title> FTP-Server </title>';
print '</head>';
print '<body>';

if ( -e $online )
{
print "<img src='$online'>";
}
else
{
print "<img src='$offline'>";
}

print '</body>';
print '</html>';

Jetzt habe ich das Problem, dass er immer die Grafik "flammeblau.jpg" anzeigt, obwohl die Datei "opensign.gif" vorhanden ist. Wisst ihr vieleicht warum das nicht geht ?

THX
  Milka Kuh