Algorithm::Diff::Apply

Algorithm::Diff::Apply is a Perl module to apply one or more Algorithm::Diff diffs.
Download

Algorithm::Diff::Apply Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Andrew Chadwick
  • Publisher web site:
  • http://search.cpan.org/~andrewc/Algorithm-Diff-Apply-0.2.3/lib/Algorithm/Diff/Apply.pod

Algorithm::Diff::Apply Tags


Algorithm::Diff::Apply Description

Algorithm::Diff::Apply is a Perl module to apply one or more Algorithm::Diff diffs. Algorithm::Diff::Apply is a Perl module to apply one or more Algorithm::Diff diffs.SYNOPSIS ## Single-diff form: use Algorithm::Diff::Apply qw{apply_diff}; my @ary = ...; my @diff = ...; # some call to Algorithm::Diff::diff() my @changed_ary = apply_diff(@ary, @diff); my $changed_ary = apply_diff(@ary, @diff); ## To apply >1 diff at once, use the plural form: use Algorithm::Diff::Apply qw{apply_diffs}; @newary = apply_diffs(@ary, diff1_name => @diff1, diff2_name => @diff2, ... diffN_name => @diffN); # Alternatively: @newary = apply_diffs(@ary, %named_diffs); # Scalar context: $newary = apply_diffs(@ary, %named_diffs); # Extension argument syntax: $newary = apply_diffs(@ary, { resolver => &some_sub, optimisers => , key_generator => &anothersub, opt4 => ..., opt5 => ..., }, %named_diffs); Requirements: · Perl


Algorithm::Diff::Apply Related Software