in reply to list files
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";
|
|---|