String::CyclicRotation version 0.01 =========================== String::CyclicRotation - Checks if a string is a cyclic rotation of another string. =head1 SYNOPSIS use String::CyclicRotation; my $res = is_rotation("table", "bleta"); #true =head1 DESCRIPTION Checks if a string is a cyclic rotation of another string. This test is done in O(n). =cut =head1 METHODS =head2 is_rotation Checks if a string is a cyclic rotation of another string. =cut =head1 More Information You can check more information about the used algorithm in the book "Algorithms on strings, trees and sequences". =head1 Author Joao Carreira, C<< >> =head1 COPYRIGHT & LICENSE Copyright 2009 Joao Carreira, All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut