Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: perl sort on windows

by topher (Scribe)
on Mar 25, 2013 at 23:28 UTC ( #1025413=note: print w/replies, xml ) Need Help??


in reply to perl sort on windows

This piece of code fails (note: it isn't Perl that's failing, it's your environment) because you are calling out to external tools and expecting them to behave similarly across multiple platforms. This is almost always going to bite you in the ass and cause problems.

If you want it to be portable and run correctly on Windows, get rid of the external sort command, and do the work in Perl. Read in your file, write a little Perl sort routine, and you'll have something that will work everywhere you run it.

Christopher Cashell

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1025413]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2017-07-29 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (435 votes). Check out past polls.