Thread Zeilenumbruch übernehmen: carriage return (7 answers)
Opened by ak47 at 2003-10-02 16:55

BrownWolf
 2003-10-02 16:57
#60210 #60210
User since
2003-08-15
308 Artikel
BenutzerIn
[default_avatar]
Code: (dl )
1
2
$text =~ s/\n/\\n/g;
$text =~ s/\r//g;


Und später beim Auslesen:

Code: (dl )
$text =~ s/\\n/<br>/g;
\n\n

<!--EDIT|BrownWolf|1065099513-->
Code (perl): ()
1
2
3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};;
&#36{{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};&#36{{}->{q{{{}}}}->[@{{}];}
&#36{{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;

View full thread Zeilenumbruch übernehmen: carriage return