[HRPM] line noise
chicks at chicks.net
chicks at chicks.net
Sun May 28 12:01:01 CDT 2000
On Sun, 28 May 2000, Troy E. Webster wrote:
> local(@allfiles) = grep !/^\.\.?$/, readdir(THISDIR);
! means not
/ / contains a regular expression
^ ties it to the beginning of the line
$ ties it to the end of the line
\. means a real period (. alone means any character)
? means 0 or 1
So what it gives you is the list of files from the directory and it skips
the '.' and '..' directories.
--
</chris>
Q. What's the difference between Batman and Bill Gates?
A. When Batman fought the Penguin, he won.
More information about the Norfolk-pm
mailing list