icon Top 9 categories map      RocketAware > Perl >

Why doesn't glob("*.*") get all the files?

Tips: Browse or Search all pages for efficient awareness of Perl functions, operators, and FAQs.


Search Perl pages


By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Integer, Floating point, Matrix, Statistics, Boolean, ...

Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...


Why doesn't glob("*.*") get all the files?

Because even on non-Unix ports, Perl's glob function follows standard Unix globbing semantics. You'll need glob("*") to get all (non-hidden) files.

Source: Perl FAQ: Files and Formats
Copyright: Copyright (c) 1997 Tom Christiansen and Nathan Torkington.
Next: Why does Perl let me delete read-only files? Why does -i clobber protected files? Isn't this a bug in Perl?

Previous: Why can't I use "C:\temp\foo" in DOS paths? What doesn't `C:\temp\foo.exe` work?

(Corrections, notes, and links courtesy of RocketAware.com)

[Overview Topics]

Up to: Directory Access
Up to: File Path Name Strings

Rapid-Links: Search | About | Comments | Submit Path: RocketAware > Perl > perlfaq5/Why_doesn_t_glob_get_all_.htm
RocketAware.com is a service of Mib Software
Copyright 2000, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments