use Parse; # my custom Parse.pm in /etc/perl/ use Moving; # my custom Moving.pm in /etc/perl ..... foreach $file (@filelist) { Parse::parse_file($file); Moving::move_file($file); .....