Thread Dateien split (8 answers)
Opened by BrownWolf at 2003-09-30 03:16

BrownWolf
 2003-09-30 03:23
#58806 #58806
User since
2003-08-15
308 Artikel
BenutzerIn
[default_avatar]
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;;;*{{}=*{_};;
&#36{{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};&#36{{}->{q{{{}}}}->[@{{}];}
&#36{{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;

View full thread Dateien split