in reply to % o $ is not recognized as an internal or external command

Without the percent sign it returned: 5.812 The script "% perl -MLWP -le "print(LWP->VERSION)" came from the book by Sean M. Burke titled Perl & LWP. Thanks
  • Comment on Re: % o $ is not recognized as an internal or external command

Replies are listed 'Best First'.
Re^2: % o $ is not recognized as an internal or external command
by Khen1950fx (Canon) on Aug 18, 2008 at 19:01 UTC
    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

      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.