Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CF: Problem with collect.pl
- To:
- Subject: Re: CF: Problem with collect.pl
- From: (Scott Wedel)
- Date: Mon, 10 Aug 98 09:03:49 PDT
- Cc: crossfire (at) ifi.uio.no
- Sender:
Okay, so now I decided to test it instead of doing what I thought would
work. Trouble was that readdir returns . .. and .* files unlike the
previous logic. also readdir returns just the filename so that must be
appended to the dir. This returns same values as foreach $file (<$dir/*>)
for csh on solaris 2.6
local( $tfile);
opendir(THISDIR, $dir) || die "couldn't open $dir";
local(@allfiles) = readdir(THISDIR);
closedir(THISDIR);
foreach $tfile (@allfiles) {
next if $tfile =~ /^\./;
$file = $dir."/".$tfile;
sdw
[you can put yourself on the announcement list only or unsubscribe altogether
by sending an email stating your wishes to ]