Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: How to append a string at the end of another string using substr

by AnomalousMonk (Archbishop)
on Jul 14, 2015 at 18:35 UTC ( [id://1134779]=note: print w/replies, xml ) Need Help??


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
    Thank you: 1nickt, toolic, AnomalousMonk. Your replies work for me. I'll choose one that will suit best for my need.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1134779]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-20 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found