Help for this page

Select Code to Download


  1. or download this
    $a = "/path/to/a/file";
    $b = "/path/to/b/file";
    $difference = system("$diff $a $b");
    $difference2 = system("$diff -y $a $b");
    
  2. or download this
    if ($difference eq ''){
    $difference = "Exactly Same.\n";
    ...
    push @table1, "<table id =\"Table1\">";
    push @table1, "<tr><th>path A</th><th>A</th><th>path B</th><th>B</th><
    +/tr>";
    push @table1, "<tr><td colspan =\"4\">$difference</td></tr>";