[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[FWP] appending to two strings



I've got a little code snippet that is irritating me, because there's
got to be a shorter way to do it, but I'm having a brain-block. I knew
that the folks on FWP could help.

Is there a way to do the following two lines in one line? :

$string1 .= $append;
$string2 .= $append;

$string1 and $string2 are different strings, of course, which just
happen to be being appended with the same data right now.

Rich
-- 
It seems to me as we make our own few circles 'round the sun
We get it backwards and our seven years go by like one 
          --Rush, 'Dog Years' (Test for Echo, 1996)

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe