Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atoomic/fastglob
FastGlob - A faster glob() implementation
https://github.com/atoomic/fastglob
Last synced: 3 months ago
JSON representation
FastGlob - A faster glob() implementation
- Host: GitHub
- URL: https://github.com/atoomic/fastglob
- Owner: atoomic
- Created: 2019-05-30T15:38:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T19:57:30.000Z (over 5 years ago)
- Last Synced: 2024-06-20T19:27:02.271Z (7 months ago)
- Language: Perl
- Size: 17.6 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# NAME
FastGlob - A faster glob() implementation
# VERSION
version 1.5
# SYNOPSIS
```perl
use FastGlob qw(glob);
my @list = &glob('*.c');
```# DESCRIPTION
This module implements globbing in perl, rather than forking a csh.
This is faster than the built-in glob() call, and more robust (on
many platforms, csh chokes on `echo *` if too many files are in the
directory.)There are several module-local variables that can be set for
alternate environments, they are listed below with their (UNIX-ish)
defaults.```
$FastGlob::dirsep = '/'; # directory path separator
$FastGlob::rootpat = '\A\Z'; # root directory prefix pattern
$FastGlob::curdir = '.'; # name of current directory in dir
$FastGlob::parentdir = '..'; # name of parent directory in dir
$FastGlob::hidedotfiles = 1; # hide filenames starting with .
```So for MS-DOS for example, you could set these to:
```
$FastGlob::dirsep = '\\'; # directory path separator
$FastGlob::rootpat = '[A-Z]:'; # pattern
$FastGlob::curdir = '.'; # name of current directory in dir
$FastGlob::parentdir = '..'; # name of parent directory in dir
$FastGlob::hidedotfiles = 0; # hide filenames starting with .
```And for MacOS to:
```
$FastGlob::dirsep = ':'; # directory path separator
$FastGlob::rootpat = '\A\Z'; # root directory prefix pattern
$FastGlob::curdir = '.'; # name of current directory in dir
$FastGlob::parentdir = '..'; # name of parent directory in dir
$FastGlob::hidedotfiles = 0; # hide filenames starting with .
```# INSTALLATION
Copy this module to the Perl 5 Library directory.
# AUTHOR
Marc Mengel
# COPYRIGHT AND LICENSE
This software is copyright (c) 1999 by Marc Mengel.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.