in reply to Re: How to append a string at the end of another string using substr
in thread [Solved]: How to append a string at the end of another string using substr
Or maybe, since Perl300 is happy to use the concatenation operator:
c:\@Work\Perl>perl -wMstrict -le "my $string1 = 'Hello'; my $string2 = ' World'; ;; $string1 = substr($string1, 0) . $string2; print qq{'$string1'}; " 'Hello World'
Give a man a fish: <%-(-(-(-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
[Solved]: How to append a string at the end of another string using substr
by Perl300 (Friar) on Jul 14, 2015 at 19:02 UTC |