Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
P is for Practical
 
PerlMonks  

Re: globing directory names with spaces

by samurai (Monk)
on Sep 16, 2002 at 11:52 UTC ( [id://198277]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to globing directory names with spaces

Might wanna just read the directory with DirHandle instead of going all out with File::Find as suggested:

use DirHandle; my $dh = new DirHandle($dir) or die "Can't open $dir: $!"; my @files = (); push @files, $_ while $_ = $dh->read();

--
perl: code of the samurai

Replies are listed 'Best First'.
Re^2: globing directory names with spaces
by Aristotle (Chancellor) on Sep 16, 2002 at 13:17 UTC
    Except he asked how to get the files not only in that directory but in the entire tree below it, something DirHandle won't do for him.

    Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://198277]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.