Hmmm, interesting problem. Please never use real paths in CGI input - that's asking for trouble. Please never use "$foo", because that's (in a way) equal to saying "" . $foo . "". Just use the scalar you want directly: $foo. (Note: except for when a subroutine usually modifies data, but you only want the returned value - using interpolation is a very nice way to cheat in those circumstances.)
As for your problem, you could split the directory names on \ and then compare the two arrays, or use one of the directory names as a regex (\Q!) for the other. Windows doesn't have symlinks and such, so I think a simple minded approach like that might just work.
U28geW91IGNhbiBhbGwgcm90MTMgY
W5kIHBhY2soKS4gQnV0IGRvIHlvdS
ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
geW91IHNlZSBpdD8gIC0tIEp1ZXJk
In reply to Re: Is this directory a subsirectory of another directory?
by Juerd
in thread Is this directory a subdirectory of another directory?
by mt2k
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |