Thanks guys for the response...it seems so obvious now...can't believe I couldn't figure it out
No worries Scott, I plan to use this program as a model for many other things besides NCBI.
I am now having another problem that I had working before...I am trying to loop in many individual pieces of text...one at a time, after receiving the response from the server. Here is the code that worked before in a simple manner...
#!/usr/bin/perl use lib "/System/Library/Perl"; use HTTP::Request::Common qw(POST); use LWP::UserAgent; $ua = LWP::UserAgent->new(); print "Which file do you wish to process?\n"; chomp($file=<STDIN>); open (FILE, "$file") || die "$!"; print "Please enter name for the output file\n"; chomp($out=<STDIN>); open (OUT, ">$out") || die "$!"; while (<FILE>) { @acc = <FILE>; } print "\nPROCESSING file $file...\n"; for ($i=0;$i<=$#acc;$i++) { $accession = $acc[$i]; chomp $accession; etc....I have made the necessary corrections now

I continue to get an error from the server and I only have one sequence in the input file.
Any thoughts??
Thanks again guys!
Dr.J


In reply to Re: Re: Automated form submission by Anonymous Monk
in thread Automated form submission by dr_jgbn

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.