At 19:54 -0400 07/21/1999, Randy M. Zeitman wrote: >question...what's the right format to glob while specifying a filepath? >(sample below...don't work) I have no problem open the file using the open >command so I know my directory's ok...is there a perl 'current working >directory' I can set?...don't see it in the Learning Perl book. chdir is used to change directories, but... I really don't quite follow what you are trying to do here. First, a subroutine is usually called with &get_files; not get_files(); Second, if you are trying to build a list of filenames from your perl code folder that end in .cde, you will be much happier using something like opendir (INDIR, $indir); @dir = grep {/.+cde$/} readdir (INDIR); closedir (INDIR); Where $indir has already been set by you to "BeCause:Desktop Folder:perl code:" and you then proceed to do something with each filename stored in the @dir array you just created using an iterative loop of some kind. Also, I don't know what your .cde extension is supposed to be- on a Mac, it doesn't really matter, but most people use .pl for Perl scripts in any case. Maybe if you explained what you are doing, it would be a little easier to make meaningful suggestions? Richard Gordon -------------------- Gordon Consulting & Design Database Design/Scripting Languages mailto:richard@richardgordon.net http://www.richardgordon.net 770.971.6887 (voice) 770.216.1829 (fax) ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org