Hash::Diff man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Hash::Diff(3)	      User Contributed Perl Documentation	 Hash::Diff(3)

NAME
       Hash::Diff - Return difference between two hashes as a hash

SYNOPSIS
	   use Hash::Diff qw( diff );
	   my %a = (
		       'foo'	=> 1,
		   'bar'    => { a => 1, b => 1 },
	       );
	   my %b = (
		       'foo'	 => 2,
		       'bar'	=> { a => 1 },
	       );

	   my %c = %{ diff( \%a, \%b ) };

	   # %c = %{ foo => 1, bar => { b => 1} }

DESCRIPTION
       Hash::Diff returns the difference between two hashes as a hash.

       diff ( <hashref>, <hashref> )
	   Diffs two hashes.  Returns a reference to the new hash.

       left_diff ( <hashref>, <hashref> )
	   Returns the values in the left hash that is not, or different from
	   the right hash.

CAVEATS
       This will not handle self-referencing/recursion within hashes well.
       This will only handle HASH and SCALAR.

       Plans for a future version include incorporate deep recursion
       protection.  And support for ARRAY.

BUGS
       Sure!  Report here: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Hash::Diff

AUTHOR
       Bjorn-Olav Strand <bo@startsiden.no>

COPYRIGHT
       Copyright (c) 2010 ABC Startsiden AS. All rights reserved.

       This library is free software.  You can redistribute it and/or modify
       it under the same terms as Perl itself.

POD ERRORS
       Hey! The above document had some coding errors, which are explained
       below:

       Around line 82:
	   You forgot a '=back' before '=head1'

perl v5.14.1			  2010-09-22			 Hash::Diff(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net