Acme-Sort-Bozo

 view release on metacpan or  search on metacpan

lib/Acme/Sort/Bozo.pm  view on Meta::CPAN

as no sane individual would ever use this for any serious sorting work.

Do you feel lucky today, chump?


=cut


=head2 compare( $a, $b )

By passing a subref as the first parameter to C<bozo()>, the user is able to 
manipulate sort orders just as is done with Perl's built in C< sort { code } @list > 
routine.

The comparison function is easy to implement using Perl's C<< <=> >> and C< cmp > 
operators, but any amount of creativity is ok so long as return values are negative 
for "Order is ok", positive for "Order is not ok", and 0 for "Terms are equal 
(Order is ok)".

=cut


=head1 AUTHOR

David Oswald, C<< <davido[at]cpan.org> >>

=head1 BUGS

Please report any bugs or feature requests to C<bug-acme-sort-bozo at rt.cpan.org>, or through
the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Acme-Sort-Bozo>.  I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.




=head1 SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Acme::Sort::Bozo


You can also look for information at:

=over 4

=item * RT: CPAN's request tracker (report bugs here)

L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Acme-Sort-Bozo>

=item * AnnoCPAN: Annotated CPAN documentation

L<http://annocpan.org/dist/Acme-Sort-Bozo>

=item * CPAN Ratings

L<http://cpanratings.perl.org/d/Acme-Sort-Bozo>

=item * Search CPAN

L<http://search.cpan.org/dist/Acme-Sort-Bozo/>

=back


=head1 SEE ALSO

=over 4

=item * The Bogosort (test and shuffle) - Another I<Perversely Awful> sorting algorithm.

L<http://search.cpan.org/perldoc?Acme::Sort::Bogosort>

=back


=head1 ACKNOWLEDGEMENTS

=over 4

=item * Wikipedia article on the Bogosort and Bozo sort

L<http://en.wikipedia.org/wiki/Bogosort> 

=item * Sorting the Slow Way: An analysis of Perversely Awful Randomized Sorting Algorithms

L<http://www.hermann-gruber.com/data/fun07-final.pdf> 

=back


=head1 LICENSE AND COPYRIGHT

Copyright 2011 David Oswald.

This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.


=cut

1; # End of Acme::Sort::Bozo



( run in 1.142 second using v1.01-cache-2.11-cpan-e1769b4cff6 )