[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] more on File globbing



Wade Williams <wwilliam@cisco.com> writes:
>What I've found is that as long as none of the directories in the path
>contain a space, it works.  However, if any contain a space, it fails.
>
>I then went back and tried:
>
>foreach (<$webpath*>)
>{
>	print $_;
>}
>
>and the same thing occured - if there's a space in the path, it fails.

That's because of the way globbing is implemented in both UNIX and Mac perl.
It cannot be a bug because the UN*X Perl gurus say that nobody is supposed to
use spaces in file names anyway :-)

Matthias

-----
Matthias Neeracher   <neeri@iis.ee.ethz.ch>   http://www.iis.ee.ethz.ch/~neeri
   "I'm set free to find a new illusion" -- Velvet Underground

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch