On Sat, Jun 5, 2010 at 12:47, Mephistopheles <loda.sc...@gmail.com> wrote: > 1. Run sdiff on file1 and file2--supress identical lines > 2. OUtput column1 to outputfile1 and column2 to outputfile2 snip
You should be able to run sdiff with either the [open][1] function open my $pipe, "-|", "sdiff", "file1", "file2" or die "could not run sdiff: $!"; while (my $line = <$pipe>) { #do stuff } or [backticks][2] for my $line (`sdiff file1 file2`) { #do stuff } For removing identical lives, I would look at [regexes][3] or [substr][4]. If you wish for this program to be written for you, I can send you a rate card. [1] : http://perldoc.perl.org/functions/open.html [2] : http://perldoc.perl.org/perlop.html#%60STRING%60 [3] : http://perldoc.perl.org/perlretut.html [4] : http://perldoc.perl.org/functions/substr.html -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/