Thread Mit Perl Sätze zählen (17 answers)
Opened by Gast at 2006-06-24 16:32

Mary
 2006-07-07 14:59
#67589 #67589
User since
2006-06-25
17 Artikel
BenutzerIn
[default_avatar]
Also, ich habe jetzt alles ausprobiert und es klappt trotzdem nicht.

Mein Programm sieht jetzt so aus:

Code: (dl )
1
2
3
4
while(<>) {
$num += (s/#//g);
}
print $num, "\n";


Das funktioniert.

Aber wenn ich es so ändere:

Code: (dl )
1
2
3
4
while(<>) {
$num += (s/##//g);
}
print $num, "\n";


dann gibt er mir 0 zurück.

Wieso?

View full thread Mit Perl Sätze zählen