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

Re: [MacPerl] Re: OT dot files



On Tue, 12 Jan 1999 12:33:56 -0700, Doug McNutt wrote:

> I haven't seen a
>filename with a null character in it, but I believe it's perfectly possible
>so long as you don't insist on C strings.

THis isn't as farfetched as you might think. I noticed that one of the
problems that MacPerl has in opening files on a DOS diskette, is because
the PC insists on making the default diskette name with embedded nulls.
So, if it looks like a diskette is called "disk", it might very likely
be "d\0i\0s\0k\0".

>Can one work with a null in a
>regular expression in Perl?

Yes, using "\0" (or "\000"). But open() chokes on it.

	Bart.

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