system ("mv $fil_nm ./reports");
$filnm is present inside foreach loop
at the end i'm using system command
finally i want to mmove all the $fil_nm to a directory reports.but instead only the last executed $fil_nm is moving to a directory reports can u help me how to move all the contents in the $fil_nm to reports directory