Thread Scalar found where Operator expected (4 answers)
Opened by SirLant at 2003-11-23 18:52

SirLant
 2003-11-23 18:52
#72583 #72583
User since
2003-08-04
516 Artikel
BenutzerIn
[default_avatar]
Wo liegt bei dieser Funktion der Fehler?
Irgend etwas passt Perl bei der Zuweisung an $content nicht.

Code: (dl )
1
2
3
4
5
6
7
8
sub lade {
local $/;
my $datei = $pfad . $aktion . '.htm';
if (open (FILE,"< $datei"))
$content = <FILE>;
else
$content = "Standard";
}


In Zeile 52, dies ist das else.
--Programming today is a race between Software Enginers striving to build bigger and better idiot-proof Programs,
and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning!

View full thread Scalar found where Operator expected