Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

The problem is that the OP'd path excerpt not only had the \c\ version, which you are focusing on; it also had c:\strawberry\perl\bin, which is the full path used in the "that works fine" post, so if that really was the path, it should have been found.

Unfortunately, we've only ever seen that original snippet of anonypl's "path variable", and do not know whether that was a copy/paste from the windows "Environment Variables" dialog box (and if so, whether it was from the user variables or system variables section), or whether that was a partial copy/paste from the actual cmd.exe prompt, with either a path or an echo %PATH% issued.

I am curious whether powershell is finding the same perl executable that the full-path does from cmd.exe. If anonypl could run something similar to the following, we may learn more.

cmd.exe C:\Users\pryrt>powershell Windows PowerShell Copyright (C) 2016 Microsoft Corporation. All rights reserved. PS C:\Users\pryrt> (get-command perl.exe).path c:\usr\local\apps\berrybrew\perls\5.24.0_64\perl\bin\perl.exe PS C:\Users\pryrt> exit C:\Users\pryrt>where perl c:\usr\local\apps\berrybrew\perls\5.24.0_64\perl\bin\perl.exe c:\usr\local\apps\berrybrew\perls\5.24.0_64\perl\bin\perl.exe C:\Users\pryrt>echo %PATH% ...;c:\usr\local\apps\berrybrew\perls\5.24.0_64\c\bin;c:\usr\local\app +s\berrybrew\perls\5.24.0_64\perl\bin;c:\usr\local\apps\berrybrew\perl +s\5.24.0_64\perl\site\bin;...

And if you're wary of revealing something in your PATH, feel free to ellide, like I did. Or use the known location of perl to help you snip it, so we don't accuse you of deleting something helpful:

c:\usr\local\apps\berrybrew\perls\5.24.0_64\perl\bin\perl.exe -le "pri +nt for grep { /perl/ } split /;/, $ENV{PATH}" c:\usr\local\apps\berrybrew\perls\5.24.0_64\c\bin c:\usr\local\apps\berrybrew\perls\5.24.0_64\perl\bin c:\usr\local\apps\berrybrew\perls\5.24.0_64\perl\site\bin

Though on your system, you should use your known-good path to perl, which according to the aforementioned "works fine" post, should be as follows. Oh, right, and search for perl or berry:

C:\Strawberry\perl\bin\perl\perl.exe -le "print for grep { /perl|berr +y/ } split /;/, $ENV{PATH}"

In reply to Re^4: Strange problem with Windows 7 command line and perl by pryrt
in thread Strange problem with Windows 7 command line and perl by anonypl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-19 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found