perlquestion
manoj_speed
Hi All, <BR\><BR\>
I would like to concatenate more than one variable in assignment.<BR\><BR\>
For Ex: <BR\>
If I want to assign two variables in a single shot. I can use this.<BR\>
($myvar1, $myvar2) = ('testing1', 'testing2');<BR\><BR\>
Likewise, I would like to use this for two variables concatenation in a single shot. <BR\>
($myvar1, $myvar2) = ('Hi ', 'Hello');<BR\>
($myvar1, $myvar2) .= ('Welcome', 'World');<BR\>
print "$myvar1, $myvar2\n"; # prints Hi, HelloWorld<BR\><BR\>
The above code is doing appending value for variable-2 only.<BR\><BR\>
Is there any possible way to do this in a single statement ?<BR\><BR\>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-745268">
--
The wisest mind has something yet to learn.
</div></div>