If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Perl and the DBI > Passing array via form

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-31-09, 08:33
mike_bike_kite mike_bike_kite is offline
vaguely human
 
Join Date: Jun 2007
Location: London
Posts: 2,519
Passing array via form

How can I enter and read an array in Perl via an HTML form. I can do it in PHP but I was wanting to use Perl for this app. Any ideas, quick example or a link that might help?

Cheers

Mike
Reply With Quote
  #2 (permalink)  
Old 10-21-09, 22:49
sco08y sco08y is offline
Registered User
 
Join Date: Oct 2002
Location: Baghdad, Iraq
Posts: 697
Quote:
Originally Posted by mike_bike_kite
How can I enter and read an array in Perl via an HTML form. I can do it in PHP but I was wanting to use Perl for this app. Any ideas, quick example or a link that might help?

Cheers

Mike
Sorry I didn't spot this earlier. If it's still worth answering, I just need to know some more specifics. Are you writing a CGI or mod_perl or doing something else?

Generally, if you have some text and want an array:

Code:
@array = split(/sep/, $text);
/sep/ is a regular expression, but ' ' will happily split on whitespace. For more info on what's going on:

perldoc -f split

perldoc perlre
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On