Just off the top of my head:
1.) ($concat = $a) .= $b;
perhaps more will follow. (and they did....)
2.) $" = $b; @_ = ($a,undef); $concat = "@_"; 3.) do { $concat .= $_ for (split(//))} for ($a,$b); 4.) my %a = ($a => $b); $concat = join'',each %a; 5.) $concat =~ s//$a/; $concat =~ s/$/$b/; 6.) $concat = <<"EOF"; chomp($concat); $a$b EOF 7.) $concat = `echo -n "$a$b"`; # for safe values of $a and $b 8.) $concat = glob("{$a}{$b}"); # not Taint safe... will choke on met +achars... 9.) ($concat) = ("$a$b" =~ /(.*)/); And finally, everyones favorite Perl6 construct... 10.) $concat = $a _ $b;

Update: Ok, now I get it... you want us to pick a simple operation and try to find $MAX+1 ways to do it, not necessarily just find other ways to do a concat. In that case, I'll set the original $MAX rather high by pointing at Adding 2 + 2, which ties perl-based-dynamic-webpage-templating-systems for the most most "ways to do it."

Update2: Added a few more to the list...

-Blake


In reply to Re: The most TIMTOWTDI thing you can do by blakem
in thread The most TIMTOWTDI thing you can do by cLive ;-)

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.