EXPORTS (by request only)
File::DosGlob − DOS like globbing and then some
# override CORE::glob in current package
use File::DosGlob 'glob';
# override CORE::glob in ALL packages (use with extreme caution!)
use File::DosGlob 'GLOBAL_glob';
@perlfiles = glob "..\\pe?l/*.p?";
# from the command line (overrides only in main::)
> perl −MFile::DosGlob=glob −e "print <../pe*/*p?>"
A module that implements DOS-like globbing with a few enhancements. It is largely compatible with perlglob.exe (the M$ setargv.obj version) in all but one respect--it understands wildcards in directory components.
For example, "<..\\l*b\\file/*glob.p?"> will work as expected (in that it will find something like ’..\lib\File/DosGlob.pm’ alright). Note that all path components are case-insensitive, and that backslashes and forward slashes are both accepted, and preserved. You may have to double the backslashes if you are putting them in literally, due to double-quotish parsing of the pattern by perl.
Spaces in the argument delimit distinct patterns, so "glob('*.exe *.dll')" globs all filenames that end in ".exe" or ".dll". If you want to put in literal spaces in the glob pattern, you can escape them with either double quotes, or backslashes. e.g. "glob('c:/"Program Files"/*/*.dll')", or "glob('c:/Program\ Files/*/*.dll')". The argument is tokenized using "Text::ParseWords::parse_line()", so see Text::ParseWords for details of the quoting rules used.
Extending it to csh patterns is left as an exercise to the reader.
EXPORTS (by request only)
Should probably be built into the core, and needs to stop pandering to DOS habits. Needs a dose of optimizium too.
Gurusamy Sarathy <email@example.com>
Support for globally overriding glob() ( GSAR 3−JUN−98)
Scalar context, independent iterator context fixes ( GSAR 15−SEP−97)
A few dir-vs-file optimizations result in glob importation being 10 times faster than using perlglob.exe, and using perlglob.bat is only twice as slow as perlglob.exe ( GSAR 28−MAY−97)
Several cleanups prompted by lack of compatible perlglob.exe under Borland ( GSAR 27−MAY−97)
Initial version ( GSAR 20−FEB−97)
More Linux Commands
gnutls_pkcs11_obj_get_info(3) - API function (Man Page).....
This function will return information about the PKCS11 certificate such as the label, id as well as token information where the key is stored. When output is te
XtIsComposite(3) - obtain and verify a widget's class.......
The XtClass function returns a pointer to the widgets class structure. The XtSuperclass function returns a pointer to the widgets superclass class structure. Th
winbind_krb5_locator(7) - A plugin for MIT and Heimdal Kerbe
This plugin is part of the samba(7) suite. winbind_krb5_locator is a plugin that permits MIT and Heimdal Kerberos libraries to detect Kerberos Servers (for the
pow10f(3) - base-10 power functions - Linux manual page.....
The pow10() function returns the value of 10 raised to the power x. VERSIONS These functions first appeared in glibc in version 2.1. CONFORMING TO This is a GNU
fputs_unlocked(3) - nonlocking stdio functions (Man Page)...
Each of these functions has the same behavior as its counterpart without the _unlocked suffix, except that they do not use locking (they do not set locks themse
FontCacheQueryVersion(3) - X-TrueType font cache extension c
FontCache is an extension that is used by X-TrueType to cache informations about fonts. FontCacheQueryExtension returns True if the FontCache extension is avail
XTestFakeButtonEvent(3) - XTest extension functions.........
This extension is a minimal set of client and server extensions required to completely test the X11 server with no user intervention. This extension is not inte
argz_add(3) - functions to handle an argz list (Man Page)...
These functions are glibc-specific. An argz vector is a pointer to a character buffer together with a length. The intended interpretation of the character buffe
mvgetch(3ncurses) - get (or push back) characters from curse
The getch, wgetch, mvgetch and mvwgetch, routines read a character from the window. In no-delay mode, if no input is waiting, the value ERR is returned. In dela
wtouchln(3ncurses) - curses refresh control routines........
The touchwin and touchline routines throw away all optimization information about which parts of the window have been touched, by pretending that the entire win
Tk_DrawTextLayout(3) - routines to measure and display singl
These routines are for measuring and displaying single-font, multi-line, justified text. To measure and display simple single-font, single-line strings, refer t
foreach(n) - Iterate over all elements in one or more lists
The foreach command implements a loop where the loop variable(s) take on values from one or more lists. In the simplest case there is one loop variable, varname