Re: [perl] glob() and filenames w/ spaces
On Tue, Apr 24, 2001 at 07:33:49PM -0500, will trillich wrote:
> or, maybe try
>
> use File::Find;
> my @list = ();
> find( \&iterator , "./path/one" , "/another/path/here");
> &munge( @list );
>
> sub iterator {
> push @list,$File::Find::name
> if $File::Find::name =~ m{$pattern}o
> or &conditions_are_just_so($something);
> }
>
> see the camel book for more on File::Find.
Thanks for your help. I ended up doing it with readdir() which works fine.
> --
> DEBIAN NEWBIE TIP #30 from Will Trillich <will@serensoft.com>:
> Which COMMANDS pertain to <xyz>? Try "apropos <xyz>",
> "info <xyz>", and "man -k <xyz>".
>
> Also see http://newbieDoc.sourceForge.net/ ...
Nice idea!
Sven
--
Powered by Debian GNU/Linux
Reply to: