NAME Glob2re - convert glob/wildcard to regular expression SYNOPSIS The module exports one function, glob2re: use Glob2re; my $re = glob2re($glob); DESCRIPTION The glob2re function converts a Unix-style file-globbing string to a regular expression. It is used by the dirlist and hgrep commands. Unix-style file-globbing uses "*" to match zero or more characters of any type, and "?" to match any single character. Prefix "*" or "?" with "\" if you want to use those literally, rather than as a metacharacter. EXAMPLE my $glob = "*.*"; my $re = glob2re($glob); AUTHOR Kevin Buettner