Most of your utilities are from unix but are not available on windows. Cygwin provides these as it is a unixy platform and hence they are available when you run perl under cygwin. When you use Strawberry perl it is under windows and thus any calls via command will be sent to the windows cmd shell, which then does not know about the utilities you are calling, or your syntax.
You could look at installing the Perl Power Tools which will give access to some of the utilities, but you still need to modify your syntax so it will work under windows.
In the end it will probably be simpler to translate it all into perl code anyway, as the examples you show can all be done in perl pretty easily, and quickly.
-
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.
|