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


in reply to perl cgi text area split

What are the filenames seperated with. I.e. is there a space between each filename in the textarea?

Let's assume that this is the case. What you need is an array of all the filenames listed in the textarea. You need to read in each line seperated by the \n and then split the line by spaces. I.e.

@line = split/\s/,$line_read_in;
Then you might want to do a
foreach my $filename (@line) { push (@list_of_filenames, $filename) }

HTH
-----
Of all the things I've lost in my life, its my mind I miss the most.