When looking at Cpanminus, I saw that one way to install it is the following:
curl -L https://cpanmin.us | perl - App::cpanminus
The first part downloads a file from the URL which can be interpreted by the Perl interpreter, and then pipes it to Perl. I can't figure out what the single dash argument is doing, though.
For that matter I'm not totally sure what the second argument is doing (why would Cpanminus need to know its own name?), but at least it looks less mysterious.