CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced: Re: [commander] Compare 2 Files: Edit Log



Zhris
Enthusiast

Jul 19, 2012, 6:40 PM


Views: 6570
Re: [commander] Compare 2 Files

Hi,

Your code works fine for me / based on my example input files.

Input1

Code
hello 
hi
bye
cya


Input2

Code
hello 
hiya
byeee
cya


Output

Code
--- one.txt	Fri Jul 20 02:23:22 2012 
+++ two.txt Fri Jul 20 02:23:32 2012
@@ -1,4 +1,4 @@
hello
-hi
-bye
+hiya
+byeee
cya


Which is effectively "all Word of both Files". Are you not receiving a similar output. If you are, what is the output you desire.

Chris


(This post was edited by Zhris on Jul 19, 2012, 6:49 PM)


Edit Log:
Post edited by Zhris (Enthusiast) on Jul 19, 2012, 6:41 PM
Post edited by Zhris (Enthusiast) on Jul 19, 2012, 6:43 PM
Post edited by Zhris (Enthusiast) on Jul 19, 2012, 6:44 PM
Post edited by Zhris (Enthusiast) on Jul 19, 2012, 6:45 PM
Post edited by Zhris (Enthusiast) on Jul 19, 2012, 6:45 PM
Post edited by Zhris (Enthusiast) on Jul 19, 2012, 6:46 PM
Post edited by Zhris (Enthusiast) on Jul 19, 2012, 6:49 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives