jarwulf has asked for the wisdom of the Perl Monks concerning the following question:
system ("sort -k 1,1 -k 4n -T $workingDir $name >tempLoc_$name")==0 or die "$0 failed to sort $name";
So this piece of code fails on windows because I think the -k is interpreted as specifying the input twice. How would I change this so that its as equivalent as possible but runs on windows?
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: perl sort on windows
by CountZero (Bishop) on Mar 25, 2013 at 06:58 UTC | |
by hdb (Monsignor) on Mar 25, 2013 at 07:17 UTC | |
by Anonymous Monk on Mar 25, 2013 at 07:24 UTC | |
by hdb (Monsignor) on Mar 25, 2013 at 07:27 UTC | |
by Anonymous Monk on Mar 25, 2013 at 07:34 UTC | |
| |
Re: perl sort on windows (sort.exe , gnusort.exe )
by Anonymous Monk on Mar 25, 2013 at 01:12 UTC | |
by Anonymous Monk on Mar 25, 2013 at 01:13 UTC | |
by gurpreetsingh13 (Scribe) on Mar 25, 2013 at 11:32 UTC | |
Re: perl sort on windows
by topher (Scribe) on Mar 25, 2013 at 23:28 UTC | |
Re: perl sort on windows
by sundialsvc4 (Abbot) on Mar 27, 2013 at 13:33 UTC |
Back to
Seekers of Perl Wisdom