Rob Dixon made a couple of mistakes in writing:
>>
>> closedir(DIR);
>
> Do this after you've finished reading it.
(meaning 'directly after you've finished reading the directory' :)
> This should work roughly as intended. If you need to know what
> your current working directory is,
>
> use Cwd;
>
> which imports subroutine 'cwd', amongst other things, and lets you
> do this sort of thing:
>
> my $fullpath = cwd.$basename;
more precisely
my $fullpath = cwd.'/'.$basename;
> Also you might consider using 'glob' as follows:
Cheers,
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]