I would like to create a unique list. For example, I have two separate lists of solution ids and there is the potential of over lapping results. How would I best eliminate the duplicates and have a unique list of results. Does anyone have an example of some code they used to do this?
I am trying to use the following code but is not working, just hoping someone has a better way to do this. sub createUniquePartitionFile { my %args = ( PARTITION => '', PARTITIONFILE => '', OUTPUTFILENAME => '', @_, ); $status = 0; $partitionFile = $args{PARTITIONFILE}; $outputFileName = $args{OUTPUTFILENAME}; # Message print "topten: Creating a unique solution file for [$partition].\n"; # Remove existing output file $command_string = "/usr/bin/rm -f " . $outputFileName; $status = `$command_string`; $command_string = "sort -u " . $partitionFile . " \> " . $outputFileName; $status = `$command_string`; return $status; } Thank you in advance -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]