in reply to How do I insert (not overwrite) into a string?
my $str = 'ello'; my $char = 'H'; print $str, "\n"; substr($str, 0, 0, $char); print $str, "\n";
|
---|
In Section
Seekers of Perl Wisdom
in reply to How do I insert (not overwrite) into a string?
my $str = 'ello'; my $char = 'H'; print $str, "\n"; substr($str, 0, 0, $char); print $str, "\n";
|
---|