on 7/24/02 7:51 PM, [EMAIL PROTECTED] purportedly said:

> 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";
> 
> Any idea what am I doing wrong?
> 
> Thanks,
> 
> Samy Rengasamy.
> 

Probably because <> is being interpreted in a scalar context because of the
||. Enclose the assignment in parens:
(@fileList = <$dirName/*>) || die "Read Directory Listing of $dirName
Failed";

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"

Reply via email to