Blackice
01-07-2003, 11:19
Moin Moin
ich möchte gerne eine .rtf Textdatei mit perl öffnen und einen String darin verändern.
ich habe es mit diesem code versucht:
#!/usr/bin/perl -w
open doku, "dokument.rtf"
or die "Dokument nicht vorhanden";
$_ = doku;
s/form/stapel/g;
print doku;
close doku;
perl gibt aber aus:
unqouted string "doku" my clash with future reserved word at word.pl in line 2, 4, 6 und 7
filehanlde doku opened only for input at word.pl line 6
kann mir ma jemand helfen plz
mfg
Blackcie
ich möchte gerne eine .rtf Textdatei mit perl öffnen und einen String darin verändern.
ich habe es mit diesem code versucht:
#!/usr/bin/perl -w
open doku, "dokument.rtf"
or die "Dokument nicht vorhanden";
$_ = doku;
s/form/stapel/g;
print doku;
close doku;
perl gibt aber aus:
unqouted string "doku" my clash with future reserved word at word.pl in line 2, 4, 6 und 7
filehanlde doku opened only for input at word.pl line 6
kann mir ma jemand helfen plz
mfg
Blackcie