8 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
open (IN, "<daten.xml");
@file_lines = <IN>;
close IN;
open (OUT, ">daten2.xml") || die "cannot open file";
while (@file_lines)
{
$file_line=~s/ü/ü\;/g;
$file_line=~s/ö/ö\;/g;
$file_line=~s/ä/ä\;/g;
print OUT "$file_line";
}
close (OUT);
1
2
3
4
5
6
7
foreach $file_line (@file_lines)
{
$file_line=~s/ü/ü\;/g;
$file_line=~s/ö/ö\;/g;
$file_line=~s/ä/ä\;/g;
print OUT "$file_line";
}
Quote@file_lines = <IN>;
Quoteopen (OUT, ">daten2.xml") || die "cannot open file";
Quotewhile (@file_lines)
{
Quote$file_line=~s/ü/ü\;/g;
$file_line=~s/ö/ö\;/g;
$file_line=~s/ä/ä\;/g;
Quoteprint OUT "$file_line";
1
2
3
4
5
6
7
8
open (IN, "<daten.xml") or die $!;
open (OUT, ">daten2.xml") or die "cannot open file : $!";
while (<IN>) {
encode_entities;
print OUT;
}
close OUT or die $!;
close IN or die $!;
1
2
3
4
5
6
7
open (IN, "daten1.xml") or die "cannot read from file : $!";
open (OUT, ">daten2.xml") or die "cannot write to file : $!";
while (<IN>) {
print OUT encode_entities($_);
}
close OUT or die $!;
close IN or die $!;
8 Einträge, 1 Seite |