Rengasamy, Samy [[EMAIL PROTECTED]] wrote: > I am trying to read a directory listing with the following line of code, > but I just get the first file listed. > > @fileList = <$dirName/*> || die "Read Directory Listing of $dirName Failed";
This doesn't work like open(), the LHS of your || is not a boolean
value on success. Try this:
@filelist = <$dirName/*>;
if($!) { die "Read Directory Listing of $dirName Failed"; }
Cheers,
-- Bob
Bob McElrath ([EMAIL PROTECTED])
Univ. of Wisconsin at Madison, Department of Physics
"No nation could preserve its freedom in the midst of continual warfare."
--James Madison, April 20, 1795
msg03432/pgp00000.pgp
Description: PGP signature
