Hacker News new | ask | show | jobs
by d5ve 5326 days ago
Even shorter, as -l appends \n to all prints:

    $ perl -MLWP::UserAgent -le 'print $LWP::UserAgent::VERSION'
1 comments

Even shorter!

    $ M=LWP::UserAgent && perl -M$M -le "print \$$M::VERSION"
Even even shorter!

    $ M=LWP::UserAgent;perl -M$M -Esay\$$M::VERSION
This reminds me of that joke in which jokes have been reduced to numbers. It's nearly as obscure, too.
Did Gödel come up with that joke?