in reply to Opening multiple log files

Populate your array with glob, or use glob instead of the array, or use while loop with readdir.

Replies are listed 'Best First'.
Re^2: Opening multiple log files
by hahazeeq (Novice) on Jun 15, 2015 at 07:43 UTC
    I have found many solutions using either one of those two ways, however I've done trial and error with my codes and can't seem to be able to create the files. Is there an example you could show me using my codes?
      glob gives you only existing file names. For new files that you want to have created, you have to give the names yourself, e.g. with
      my @list_files = qw/first.log second.log third.log/;
      forget it, obviously hadn't enough coffee yet