Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: perl cgi text area split

by AcidHawk (Vicar)
on Mar 10, 2004 at 06:51 UTC ( #335374=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://335374]
help
Chatterbox?
[james28909]: i figured it out
[james28909]: upon trying various solutions, i was forgetting to package up the script into an executable
[marto]: that'll do it
[james28909]: im glad im not in charge of anything important, like filling up peanut butter jars
marto grins

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-07-28 14:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (431 votes). Check out past polls.