in reply to Using system (); with Strawberry Perl
I'm a bit late but I add my own solution: put these programs in your PATH infact you can use gnuwin32 or UnxUtils as I've done since years.
They are really useful and make the poor cmd.exe experience a bit easier to survive to. That said a plain perl solution is by far better in terms of portability. In your PATH order matters:
C> path PATH= C:\EX_D\ulisseDUE\perl5.26.64bit\perl\site\bin; # strawberry perl +portable C:\EX_D\ulisseDUE\perl5.26.64bit\perl\bin; # strawberry perl +portable C:\EX_D\ulisseDUE\perl5.26.64bit\c\bin; # strawberry perl +portable C:\EX_D\ulisseDUE\bin\UnxUtils\usr\local\wbin; # <--------------- +-------- UnxUtils C:\WINDOWS; # OS C:\WINDOWS\system32; # OS C> ls C:\EX_D\ulisseDUE\bin\UnxUtils\usr\local\wbin | grep -E "grep|mv +|cat|rm" agrep.exe cat.exe egrep.exe fgrep.exe grep.exe mv.exe mvdir.exe rm.exe rman.exe rmdir.exe zcat.exe
Just one big caveat: be sure to have the right make (or dmake, gmake..) in front in your path:
L*
|
---|