OK, let's de-obfuscate...
$_= "Just Another Perl Hacker";
print /(.)n/;
That's easey, set $_ to JAPH, and print the first char followed by an 'n', i.e. 'A'.

s/^([^ ]*) *([^ ]*)/$3 $3/;
Here you have two capturing parenthenses, but replace with $3, which is undef. So in fact you are removing something of $_. And what are you removing?
^([^ ]*)
Thats, from the beginning of the string, everything that's not a space, until the next space, i.e. 'Just'.
 *([^ ]*)
This is basically the same regex, removing the next word (i.e. 'Another')

/\sH(.)(.)/;
This is no replacement, but a match for the two characters following ' H', that is 'a' and 'c'.

print $2;
Print the second match, i.e. 'c'.

/(.)\1.(.)/;
Another match, the most tricky in this obuf (IMO).
Reminder: \1 in a regex is basically the same as $1 outside, i.e. the value found in the first capturing parenthenses.
So, this matches the first char followed by itself, and saves the char after the next in $2. AS you replaced the first two words with nothing, $_ now looks like (using _ instead of space for clarity) __Perl Hacker, so the regex matches

__Perl Hacker
and thus saves 'e' in $2;

print $2,",";
Which you print here, followed by a ','.

print $_;
Print $_ (BTW, just print would've been enough..), .i.e. ' Perl Hacker'

Not that hard to de-obfuscate, the only thing that made me wonder what was going on was '\1' in one regex.

--
#!/usr/bin/perl -w just another perl hacker
print+seek(DATA,$=*.3,@-)?~~<DATA>:$:__DATA__

In reply to Solution: Not what you'd expect by domm
in thread Not what you'd expect by ProgrammingAce

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.