open (THING, '|-', 'sort.exe'); my @unsorted = qw(bbb aaa ccc eee ddd); print THING "$_ " foreach @unsorted; close (THING); # My assumption is that after I close(), sort.exe knows to start "sorting"...