in reply to How to push and print at the same time?
push @folders, "$_" [download]
push @folders, $_ [download]
You are adding noise to your script to needlessly create a copy of the string.