foreach my $file (@files) { printf "-A %s = %d\n", $file, -A "$userpath/$file"; printf "-M %s = %d\n", $file, -M "$userpath/$file"; }