andrew, if you are using paths, 1. escape the directory separator 2. and if the folder names have a space, use the dos 8.3 format.
as in glob "C:\\Docume~1\\BlackA\\*.txt"; cheers, -----Original Message----- From: andrew Black [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 2:43 PM To: perl-win32-users Subject: Re: Globbing Rahul Chauhan wrote: > andrew, > this should work. > > #glob.pl > my @Files = glob "*.c"; > print @Files; > Thanks for the various replies. I have now got a further problem. I am having trouble globbing files with spaces in them. When I run the following, I would like all files of type *.txt my $wildfile = "C:\Documents and Settings\BlackA\*.txt" ; @globbed_files = glob $wildfile ; print join "|", @globbed_files ; What I actually get is C:./Documents|and It seems to be splitting the input up at the spaces. _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs **************************************************************************** ************************************************* The information contained in this email and any attachments is likely to be confidential and legally privileged, and is for the intended recipient named above only. Any copying, dissemination, disclosure of or use of this email or its attachments unless authorised by us is prohibited, except that you may forward this email and/or attachments to a third party on a strict "need to know" basis. If you have received this email in error, please notify us immediately by forwarding the email to [EMAIL PROTECTED] Please then delete this email and any full or partial copies of it. You as the intended recipient must be aware and accept that email is not a totally secure communications medium. Although we have taken all reasonable steps to make sure this email and any attachments are free from viruses, we do not (to the extent permitted by law) accept any liability whatsoever for any virus infection and/or compromise of security caused by this email and any attachment. No contract may be formed or documents served by you on or with us by this email or any attachments unless expressly agreed otherwise by us. Any views expressed in this email or attachments by an individual are not necessarily those of any UbiNetics company. _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs