On 8/4/07, perl pra <[EMAIL PROTECTED]> wrote:
> Hi Gurus,
>
>
> I want to execute some of the unix commands on windows, Presently we are
> using Cygwin to run unix commands on Windows.
>
> Now I need to convert all the shell scripts into perl scritp. Is there any
> module in perl which allows me to execute unix commands on Windows.
snip
Perl is a general purpose language like C (which is what the unix
utilities are written in), so, in general, you shouldn't be running
unix commands. For instance, instead of saying
system("rm -f $file");
you should say
unlink($file);
If you have questions about what the Perl way of doing what specific
unix utilities do then feel free to ask.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/