Date: Tue, 23 Mar 1999 12:56:13 +0100 From: Rasmus Kaj <kaj@raditex.se> To: jase@clearsail.net Cc: Rasmus Kaj <kaj@raditex.se> Subject: Re: Perl File::Find problem Message-ID: <19990323125613D.kaj@raditex.se> In-Reply-To: Your message of "Tue, 23 Mar 1999 04:13:37 -0600" <36F76950.9681B350@clearsail.net> References: <36F76950.9681B350@clearsail.net>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "JM" == Jason McNew <jase@clearsail.net> writes: JM> I'm trying to use the File::Find module in Perl 5 and for some reason it JM> refuses to search through my fat32 mouted dirs. Observe the folowing JM> code: JM> use File::Find; JM> &find(\&ismp3, '/d','/c','/usr/home'); JM> sub ismp3 { JM> if(/mp3/i) { push @mp3list, $File:Find:name; } JM> } JM> It works exactly as expect but only under /usr/home. Maybe the perl find won't descend mountpoints by default? I guess /d and /c are mountpoints, but /usr/home is a common directory? If so, try to use "&find(\&ismp3, '/d/.','/c/.','/usr/home');". I've seen another suggestion from Dom Mitchell in another mail, that might be it also ... -- Rasmus Kaj ---------------- rasmus@kaj.a.se - http://www.e.kth.se/~kaj/ \ If you think I'm talking about the future you're living in the past \--------------------------------------------- http://www.Raditex.se/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990323125613D.kaj>