Could you create a variable for the file instead of calling files() 3times?
> catalog_pm = files('path/to/Catalog.pm')
-- Tristan PartinNeon (https://neon.tech)