http://www.perlmonks.org?node_id=1024874


in reply to Limited Number of User Input

As you prompted the user the number of file names to combine, then you need to get the filename from the user by entering the filename line by line, not space separated filenames!

If you get the filenames in a single line separated by space, <STDIN> reads whole content till you press the enter key.


All is well