http://www.perlmonks.org?node_id=999231

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

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