Thread Dateien split
(8 answers)
Opened by BrownWolf at 2003-09-30 03:16
Hmm mit Push würd das noch gehen ...
Code (perl): (dl
)
1 2 3 4 5 6 foreach(sort { (split /\|/, $b)[0] <=> (split /\|/, $a)[0] } @read) { my($time,$nick,$subject,$text) = split /\|/, $_; $time = getDate($time); $subject =~ s/.../.../g; push(@newarray, "$time|$nick|$subject|$text|"); } Hmm mach ichs erstmal so ;) Code (perl): ()
1 2 3 sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print; |