Thread array manipulation (3 answers)
Opened by hudo at 2003-12-19 18:16

ptk
 2003-12-19 19:08
#76672 #76672
User since
2003-11-28
3645 Artikel
ModeratorIn
[default_avatar]
Ungetesteter Loesungsansatz:
Code: (dl )
1
2
3
@list = map { s/^\d+//; $_ } @list; # alle fuehrenden Ziffern loeschen
$i = 1;
@list = map { $i++ . $_ } @list; # Nummerierung neu generieren

View full thread array manipulation