in reply to a simple one-liner
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.
|
|---|