in reply to Problems with scripts
With the second script, have you tried running it by hand? Does it compile OK? If so, examine your web server's error logs. They should contain the error messages describing why your script is failing. Off-hand, I would say this line should be reversed: ($one,$two,$three,$four,$five) = @text I might have re-written that like this, eliminating the need for throw-away variables altogether:
You may also be interested in the <<"EOR" construct instead of using multi-line qq strings. Either is OK though.if ($query->param('text1')) { foreach (sort ( $query->param('text1'), $query->param('text2'), $query->param('text3'), $query->param('text4'), $query->param('text5') )) { print "$_\n\n"; } }
|
|---|