Perl/Shell Knowledge Sharing
Perl Interview Questions and Answers
Saturday, January 15, 2011
perl: Text Compare
use Text::Diff;
$string1 = "Welcome to chennai";
$string2 = "Welcome to India";
my $diff = diff( \$string1, \$string2, { STYLE => "Context" });
print "$diff";
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment