in reply to Re: How to push and print at the same time?in thread How to push and print at the same time?
push @folders, "$_" and print $FOLDERS "$_\n" [download]
push(@folders, "$_"), print $FOLDERS "$_\n" [download]