print @listfiles."\n";
You are using the concatenation operator which forces its operands into scalar context, and an array in scalar context returns the number of elements in the array, not the contents of those elements. Try printing the array in list context instead:
print @listfiles, "\n";
In reply to Re: list files
by jwkrahn
in thread list files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |