in reply to [Solved]: How to append a string at the end of another string using substr

One way (substr):
use warnings; use strict; my $string1 = "Hello"; my $string2 = " World"; substr $string1, (length $string1), 0, $string2; print "$string1\n"; __END__ Hello World
  • Comment on Re: How to append a string at the end of another string using substr
  • Download Code