File::Glob

File::Glob is a Perl extension for BSD glob routine.
Download

File::Glob Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Nathan Torkington
  • Publisher web site:
  • http://search.cpan.org/~nwclark/perl-5.8.8/pod/perlhack.pod

File::Glob Tags


File::Glob Description

File::Glob is a Perl extension for BSD glob routine. File::Glob is a Perl extension for BSD glob routine.SYNOPSIS use File::Glob ':glob'; @list = bsd_glob('*.'); $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 = ; ## override the core glob, forcing case sensitivity use File::Glob qw(:globally :case); my @sources = ; ## override the core glob forcing case insensitivity use File::Glob qw(:globally :nocase); my @sources = ; ## glob on all files in home directory use File::Glob ':globally'; my @sources = ;The glob angle-bracket operator is a pathname generator that implements the rules for file name pattern matching used by Unix-like shells such as the Bourne shell or C shell.File::Glob::bsd_glob() implements the FreeBSD glob(3) routine, which is a superset of the POSIX glob() (described in IEEE Std 1003.2 "POSIX.2"). bsd_glob() takes a mandatory pattern argument, and an optional flags argument, and returns a list of filenames matching the pattern, with interpretation of the pattern modified by the flags variable.Since v5.6.0, Perl's CORE::glob() is implemented in terms of bsd_glob(). Note that they don't share the same prototype--CORE::glob() only accepts a single argument. Due to historical reasons, CORE::glob() will also split its argument on whitespace, treating it as multiple patterns, whereas bsd_glob() considers them as one pattern. Requirements: · Perl


File::Glob Related Software