Fortunately it's really just saving a few keystrokes; one-liners will survive without it. Also worth noting, perhaps: Object/Class-method calls do work. It's functions (non-methods) that trip up the error.
I find it very valuable and wish to retain the ability to use modules on the command line without having to refer to them twice and tinker with -M! As for the second point, you would think so, but check this out:
perl -ML -e 'print Data::Dumper->Dump([HTTP::Tiny->new->get(q(https://
+www.perlmonks.org))->{headers}])'
5.26
$VAR1 = {
'server' => 'Apache/2.4.41',
'etag' => '"f059-595f109c01e50"',
'date' => 'Mon, 28 Oct 2019 04:38:47 GMT',
'last-modified' => 'Mon, 28 Oct 2019 04:36:06 GMT',
'content-length' => '61529',
'accept-ranges' => 'bytes',
'content-type' => 'text/html'
};
5.28
$VAR1 = {
'content-type' => 'text/plain',
'content-length' => 110
};
<Twilight Zone Music> |