From owner-freebsd-stable Tue Mar 23 3:55:18 1999 Delivered-To: freebsd-stable@freebsd.org Received: from ns.raditex.se (raditex.thorsen.se [193.14.93.200]) by hub.freebsd.org (Postfix) with ESMTP id 217C114D61 for ; Tue, 23 Mar 1999 03:55:10 -0800 (PST) (envelope-from kaj@raditex.se) Received: from localhost (dialup204-4-43.swipnet.se [130.244.204.235]) by ns.raditex.se (8.8.8/8.8.8) with ESMTP id MAA01358; Tue, 23 Mar 1999 12:54:44 +0100 (CET) (envelope-from kaj@raditex.se) To: jase@clearsail.net Cc: stable@FreeBSD.ORG Cc: Rasmus Kaj Subject: Re: Perl File::Find problem From: Rasmus Kaj In-Reply-To: Your message of "Tue, 23 Mar 1999 04:13:37 -0600" <36F76950.9681B350@clearsail.net> References: <36F76950.9681B350@clearsail.net> X-Mailer: Mew version 1.93 on XEmacs 20.4 (Emerald) X-URL: http://www.e.kth.se/~kaj/ X-Phone: +46 (0)8 - 692 35 09 X-Attribution: Kaj X-Face: M9cR~WYav<"fu%MaslX0`43PAYY?uIsM8[#E(0\Xuy9rj>4gE\h3jm.7DD?]R8*^7T\o&vT U@[53Dwkuup4[0@gw#~kyu>`unH?kVj9CJa02(h>Ki\+i=%rn%sDf^KC.!?IHkKjMAbkd\jgmphp^' d|Q;OeXEAhq?ybGqOs1CHb6TJT42'C`Krnk61//AOfXtNjj/t'`5>Vw0QX!dKfOL$.f+S"LIuwR<;I Z0Qnnx(F^F]o@*V%TUtEV'1Z[TkOl^FFV9Z~A[b19%}uP*,huCU Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990323125613D.kaj@raditex.se> Date: Tue, 23 Mar 1999 12:56:13 +0100 X-Dispatcher: imput version 980905(IM100) Lines: 27 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "JM" == Jason McNew 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