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
In reply to Re: strange regexp problem
by iwanthome
in thread strange regexp problem
by iwanthome
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |