Thread perl prog funzt nur noch unter linux (15 answers)
Opened by Gast at 2008-02-17 10:14

topeg
 2008-02-18 19:36
#106079 #106079
User since
2006-07-10
2611 Artikel
BenutzerIn

user image
@Linuxer
Code (perl): (dl )
$words =~tr/\W\S//d; # Sonderzeichen entfernen

Ich sollte weniger Copy/Paste nutzen :/

@Gast
Code (perl): (dl )
$words =~s/[\r\n]+/ /gs
Was funktioniert dabei nicht?
Alternativ könnte man auch
Code (perl): (dl )
$words =~s/[\x0D\x0A]+/ /gs
verwenden.

View full thread perl prog funzt nur noch unter linux