I will try and filter out the relative information so it isn't so long.
#---------------------------------------------------- # use STATEMENTS #---------------------------------------------------- use strict; use CGI; use CGI::Carp qw(fatalsToBrowser); #---------------------------------------------------- # Get input from website #---------------------------------------------------- my $query = new CGI; my $form_product = $query->param('product'); my $form_tested_on_build = $query->param('tested_on'); my $form_feature = $query->param('feature'); my $form_crs_resolved = $query->param('crs_resolved'); my $form_comments = $query->param('comments'); my $form_paths = $query->param('paths'); . . . system ("submit.pl", $id_line, $form_tested_on_build, $form_feature, $ +form_crs_resolved, $form_comments, $temp_paths);
And then submit.pl contains:
#------------------------------------------- # use STATEMENTS #------------------------------------------- use CGI::Carp qw(fatalsToBrowser); use CGI; use strict; use WWW::Mechanize; use Time::HiRes; . . . # Second page of WSDBuild $agent->field("ID_BUILD_TESTED", "$ARGV[1]"); $agent->select("ID_TEAM", "3456"); # Defaulted to CDMA Common Compone +nt $agent->field("HEADLINE", "$ARGV[2]"); $agent->field("CR_LIST", join("\n", "$ARGV[3]")); #$agent->field("COMMENT", join("\n", "$ARGV[4]")); $agent->field("COMMENT", $ARGV[4]); #$agent->field("PATHS", join("\n", $ARGV[5])); $agent->click(); # Saves submitted page whether successful or not $agent->save_content("$log_file");
I am just concerned with the comments field for now, because the others are only 1 line. Let me know if there is anything else that will help. Thanks.

In reply to Re^4: WWW::Mechanize help by ZimCS
in thread WWW::Mechanize help by ZimCS

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.