This is an section of code from Learning perl on win32 system
It reads a directory. Assigns a directory handle named in this case WD.
In the foreach loop, the list returned by readdir (in a list context) is
sorted,
and turned into a link.
This is probably quite obvious - (but i am a newbie) how do i stop/hide the
. and .. from appearing on my list as a hyperlink?
.
..
AFault 3735FD.htm
AFault 3735FE.htm
AFault 373601.htm
AFault 373605.htm
Here's the code snippet
opendir(WD,"./scripts/cgi-bin/NIS_REPORTS") ||
die "Cannot opendir . (serious dainbramage): $!";
foreach (sort readdir(WD))
{
print qq|<a href="NIS_REPORTS/$_">$_</a><br>\n|;
}
closedir(WD);
Thanks in advance
Margaret
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]