RE: How to use Command (really how to find files in current sourc e dir)

"BUFFERNE,VINCENT (HP-France,ex1)" <[email protected]> Thu, 23 Jan 2003 16:51:48 +0100
Newsgroups gmane.comp.gnu.cons.general
Message-ID <[email protected]>
Looks Great!

Thanks,

Vincent

-----Original Message-----
From: Gary Oberbrunner [mailto:[email protected]]
Sent: Thursday, January 23, 2003 3:46 PM
To: BUFFERNE,VINCENT (HP-France,ex1)
Cc: 'Timothee Besset'; [email protected]
Subject: Re: How to use Command (really how to find files in current
source dir)


Here's a working example.  In one of my Conscripts I have this:

   ($mydir = SourcePath("Conscript")) =~ s|[\\/]Conscript||;
   @files = glob("$mydir/*.Preset");

This finds all the .Preset files in the current source dir.  Hope that 
helps!

-- Gary



_______________________________________________
[email protected]
http://mail.gnu.org/mailman/listinfo/cons-discuss
Cons URL: http://www.dsmit.com/cons/