in reply to for loop
while (<IN>) { s{(<tgroup cols="(.*?)">)}{ "$1\n" . (map { "<colspec colnum='$_' colname='$_'/>\n" } 1..$2) }eg; print OUT; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: for loop
by texuser74 (Monk) on Aug 11, 2008 at 07:39 UTC | |
by ikegami (Patriarch) on Aug 11, 2008 at 08:09 UTC | |
by texuser74 (Monk) on Aug 11, 2008 at 08:16 UTC |