@ARGV = qw/file1 file2 file3/; #### perl do_it file1 file2 #### perl -i.bk do_it foo.bar