in reply to Re: How to get the names of sub-directory in a directory?
in thread How to get the names of sub-directory in a directory?

I'll side with merlyn here. Do not use /^\.\.?$/, but rather /^\.\.?\z/, and if you need to know the difference, re-read the regex docs on how the $ and \z anchors differ.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

  • Comment on Re: Re: How to get the names of sub-directory in a directory?