I tought to use a while, because my directory has really a lot of files, so with a while loop was easy to run that program again, also if it fails.
If File::Slurp reads all files at once, and it pocesses them later, maybe my program crashes.
Please let me know if Slurp acts in that way, or there is some control on directory reading.
For that same reason I choose a "while" over any entries and not a "foreach" structure.
For that I can understand, "foreach" read all the lines and then process it, but the "while" process all the lines, while reading.
Thank you