in reply to WWW::Mechanize help
$agent->field("COMMENT", join("\n", "$ARGV[4]"));
You're not even using the variable $form_comments in this line, and I don't see any connection to $ARGV[4] at all. (Why do you access @ARGV in a CGI script anyway? CGI.pm should take care of this.)
So either you have a simple thinko, or you're not showing the relevant part of the script.
Update: this: join("\n", "$ARGV[4]") is just the same as $ARGV[4], because "$ARGV[4]" is a scalar, thus join will do nothing to it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: WWW::Mechanize help
by ZimCS (Novice) on Aug 19, 2008 at 20:59 UTC | |
by moritz (Cardinal) on Aug 19, 2008 at 21:08 UTC | |
|
Re^2: WWW::Mechanize help
by ZimCS (Novice) on Aug 20, 2008 at 15:12 UTC | |
by moritz (Cardinal) on Aug 20, 2008 at 15:17 UTC | |
by ZimCS (Novice) on Aug 20, 2008 at 15:40 UTC | |
by moritz (Cardinal) on Aug 20, 2008 at 15:47 UTC |