in reply to strange regexp problem
thanks for everybody.My changed code is like this:
print $cwd; $cwd = dirname $0;
it print ".",so $1 is undef. So it is the reason
My code want to delete the last chapter of the directory(englist is not my native language,I don't know whether I express clearly).But I don't know why dirname return this.Maybe it has a bug
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: strange regexp problem
by Abigail-II (Bishop) on Apr 06, 2004 at 09:41 UTC | |
by Anonymous Monk on Apr 06, 2004 at 15:29 UTC |