in reply to Re: Re: Re: Re: Simple Text Indexing
in thread Simple Text Indexing

Why do I need so many chdir functions? It seems unable to deal with "\..\index" or any of that sort of stuff.
$x = "\..\index"; actually sets $x to "..index" (with a warning about the "\i" on some perl versions).

Two things to fix: first, try using forward slash or doubling your backslash; second, '\..' is not meaningful, since the root directory should have no parent.

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Simple Text Indexing
by cyocum (Curate) on Nov 30, 2003 at 16:46 UTC

    Ah yes of course! It has been so long since I programmed that I had forgotten these things. Thanks!