in reply to perldoc problem

Hi. It looks like someone else has had that problem and it seems to have been because cmd.exe or something else perldoc needs isn't in PATH.

Replies are listed 'Best First'.
Re^2: perldoc problem
by Xelium (Initiate) on Aug 02, 2012 at 04:18 UTC
    Well I still get the same error, yet I changed my path to: C:\strawberry\perl\bin;C:\Program Files (x86)\Java\jdk1.7.0_02\bin;
      Well I still get the same error, yet I changed my path to: C:\strawberry\perl\bin;C:\Program Files (x86)\Java\jdk1.7.0_02\bin;

      You will, because when you modified your path, you threw away it original contents, part of which is the path to cmd.exe.

      1. Close your current cmd window.
      2. Open a new one.
      3. Type path %path%c:\strawberry\perl\bin; Enter.
      4. Now try your perldoc command again.

      What you should really do is add (not replace!) perl's path to your system path; then you would haven't to do it each time you start a new session.

      I'm surprised that strawberry perl's installation doesn't do that for you. Or at least tell you how to do it.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?

        I'm running Strawberry Perl on Windows 7 and it adds its bin directory to the path automatically. I didn't do anything special and certainly didn't edit the system path manually.

        I get:

        C:\Users\ian>perldoc -u -f atan2 =over 8 =item atan2 Y,X X<atan2> X<arctangent> X<tan> X<tangent> Returns the arctangent of Y/X in the range -PI to PI. For the tangent operation, you may use the C<Math::Trig::tan> function, or use the familiar relation: sub tan { sin($_[0]) / cos($_[0]) } The return value for C<atan2(0,0)> is implementation-defined; consult your atan2(3) manpage for more information. =back C:\Users\ian>

        Maybe the installer wasn't run as administrator, so it coulnd't edit the system path, on Windows Vista or later?