I am trying to utilize the split function but I am unsure how to use it. Can someone help me?
#!/usr/bin/perl #Program name: perlscript print"Content-type: text/html\n\n"; #The HTTP header print"<HTML><HEAD><TITLE> CGI/My First Form</TITLE></HEAD>\n"; print"<BODY BGCOLOR=Blue TEXT=White>\n"; print"Processing CGI form:<p>"; $formvalues=$ENV{QUERY_STRING}; @formvalues=split(" ", $formvalues); print"$formvalues[0]\n"; print "</BODY></HTML>\n";
20100528 Janitored by Corion: Restored content, as per Writeup Formatting Tips
In reply to Perl Program trying to use Split" by tangieb01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |