Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: globing directory names with spaces

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


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 17: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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-20 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found