in reply to Adding a TAB after a certain ammount of characters
my $string = "20130204000000000068100836100220130681002002201306880002 +00494"; my $n = -1; substr $string, $n += 1 + $_, 0, "\t" for 17, 6, 31, 3, 3; print "$string\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Adding a TAB after a certain ammount of characters
by johngg (Canon) on Apr 16, 2013 at 22:20 UTC | |
by biancoari (Initiate) on Apr 17, 2013 at 03:11 UTC | |
by johngg (Canon) on Apr 17, 2013 at 11:15 UTC | |
by biancoari (Initiate) on Apr 17, 2013 at 12:09 UTC | |
by hdb (Monsignor) on Apr 17, 2013 at 12:11 UTC | |
by choroba (Cardinal) on Apr 17, 2013 at 12:33 UTC | |
| |
by AnomalousMonk (Archbishop) on Apr 17, 2013 at 11:19 UTC |