Phoenix.pm: Glob limit

Giffin Ron-P08295 Ron.Giffin at motorola.com
Fri Oct 22 17:06:30 CDT 1999


I don't believe opendir,...  will help.  I get the errors when I
use the unix wildcard *  IE:
@files = `ls *.dat` ; or @files = glob ( "*.dat" ) ; or even
foreach $file ( <*.dat> ) { ... }   I will look at file::find.




-----Original Message-----
From: Kevin Buettner [mailto:kev at primenet.com]
Sent: Friday, October 22, 1999 2:49 PM
To: phoenix-pm-list at happyfunball.pm.org
Subject: Re: Phoenix.pm: Glob limit


On Oct 22,  2:38pm, Giffin Ron-P08295 wrote:

> I'm using glob to build a list (array) of filenames.  There are about 4000
> filenames that the glob should find (*.dat).  I get various errors
depending
> on how I call glob.  I would be disappointed if this were a Perl
limitation,
> however I'm betting it is a system problem.  Any fixes or workarounds?

I'm betting it's a system limitation as well.  (You didn't say what
kind of system you were running it on or what the various errors were.)

In any event, you might want to try using File::Find or perhaps opendir/
readdir/closedir.  (Personally, I like File::Find.)

Kevin

-- 
Kevin Buettner
kev at primenet.com, kevinb at cygnus.com



More information about the Phoenix-pm mailing list