{ { { { { { { { { { { { { { { { {$_='Just another Perl hacker'} } }$_. +=$/ }}}}}}}}}}}}}} print sort reverse chr ord for split //

Replies are listed 'Best First'.
Re: a simple one-liner
by ikegami (Patriarch) on Apr 29, 2007 at 18:11 UTC

    Explained:

    The curlies are optional. Their only effect is to save semi-colons at the end of the assignments to $_.

    Without the curlies, the following is left:

    $_ = 'Just another Perl hacker'; $_ .= $/; print sort reverse chr ord for split //;

    Since $_ contains only one character, chr ord is a no-op.
    Since reverse is called in list context with a single argument, it's a no-op.
    Since sort is called in list context with a single argument, it's a no-op.