do { some; series of; commands; which can use $_; } foreach @files; #### foreach (@files) { some; series of; commands; which can use $_; }