in reply to
why can't I
readdir
doesn't return newline-terminated lines. Using
chomp
is incorrect.
close $file
is wrong since
$file
isn't a file handle.
You open the file named by
$file
, but you never read from the file.
Comment on
Re: why can't I
Select
or
Download
Code
In Section
Seekers of Perl Wisdom