I cant remember the quick way to remove . and .. from an array populated from a directory listing. Can someone help....
$dir = "C:\\iw-home\\httpd\\iw-bin\\testing\\data";
opendir(DIR, $dir) || die "can't open dir: $dir - $!";
@dcrs = readdir (DIR);
close (DIR);
@dcrs contains all of the files as well as . and ..
How do I process that array to remove the . and .. elements?
Thanks
Matt
Matthew Petitjean
BOC Group
Murray Hill, NJ 07974 USA