In most of my Perl books, the author will preface a command with a prompt like $, #, or %. When you're new to Perl, it can be confusing. What the author meant was perl -MLWP -le "print(LWP->VERSION)" On the other hand, when I run % perl -MLWP -le "print(LWP->VERSION)" bash will come back at me with "no such job". Obviously, we didn't want a job, but we wanted the version number of LWP.
Another way to find the version number is to use pmvers from pmtools.
Just run:
pmvers LWP | [reply] [d/l] [select] |
They also explain whats a prompt, like:
The dollar sign (and space) at the start of the line represents the shell prompt, which will probably look different on your system.
| [reply] |