File::Glob(3p) Perl Programmers Reference Guide File::Glob(3p)
File::Glob(3p) Perl Programmers Reference Guide File::Glob(3p) # File::Glob(3p) Perl Programmers Reference Guide File::Glob(3p) NNAAMMEE # File::Glob - Perl extension for BSD glob routine SSYYNNOOPPSSIISS # use File::Glob ':bsd_glob'; @list = bsd_glob('*.[ch]'); $homedir = bsd_glob('~gnat', GLOB_TILDE | GLOB_ERR); if (GLOB_ERROR) { # an error occurred reading $homedir } ## override the core glob (CORE::glob() does this automatically ## by default anyway, since v5.6.0) use File::Glob ':globally'; my @sources = <*.{c,h,y}>; ## override the core glob, forcing case sensitivity use File::Glob qw(:globally :case); my @sources = <*. ...