in reply to Re^2:Adding formatting to a string
in thread Adding formatting to a string
my $string = "ABCDEFGH"; my @string = split //, $string; $final = (join "", @string[0..3])."-".(join "", @string[4..7]); print $final; # if my code is right, this is "ABCD-EFGH"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Adding formatting to a string
by belden (Friar) on Jun 17, 2004 at 21:51 UTC |