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. Also, to Randal Swartz et al, I'm reviewing this title for compbookreview.com and like it very much. Perl Cookbook too... Randy ======== ======== #!perl #%words = ""; get_files(); sub get_files { while( defined($filename = glob("BeCause:Desktop Folder:perl code:*.cde")) ) { print ("$filename is ", "$filename\n"); open(WORDLIST, $filename) || die "can't open file: $!"; while( defined($name = <WORDLIST>) ) { chomp($name); $word = <WORDLIST>; chomp($word); $words{$name} = $word; } close(WORDLIST) || die "can't close file: $!"; } } Existentialism is the greatest modern invention ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org