README for Text::Glob 0.08
=head1 NAME
Text::Glob - match globbing patterns against text
=head1 SYNOPSIS
use Text::Glob qw( match_glob glob_to_regex );
print "matched\n" if match_glob( "foo.*", "foo.bar" );
# prints foo.bar and foo.baz
my $regex = glob_to_regex( "foo.*" );
for ( qw( foo.bar foo.baz foo bar ) ) {
print "matched: $_\n" if /$regex/;
}
=head1 INSTALLATION
perl Build.PL
perl Build test
and if all goes well
perl Build install
=head1 HISTORY
What changed over the last 3 revisions
=over
=item 0.08 Wednesday 2nd May, 2007
Expose glob_to_regex_string (Joshua Hoblitt)
=item 0.07 Friday 14th July, 2006
Explictly quote @ and %. Though they don't really need it to work
normally, it's needed for when you roundtrip the
regex back into text (like File::Find::Rule does).
=item 0.06 Monday 1st September, 2003
- port to Module::Build
- Nested alternations fix from Mike Benson
=back
=head1 AUTHOR
Richard Clamp <
[email protected]>
=head1 COPYRIGHT
Copyright (C) 2002, 2003, 2006, 2007 Richard Clamp. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
=head1 SEE ALSO
L<File::Glob>, glob(3)