my $addr = 'http://myhost.com.sg/cgi-bin/biobase/transfac/9.4/bin/star +t.cgi';

It looks like you're trying to access the transfac database. Unless something has changed since the last time I used it, the database is simply a hierarchy of easily-parsable flat files. If you're trying to use their web pages to do some searching, I would encourage you to consider accessing the data directly (in fact, if you look at the code in the cgi script you can see exactly how they locate and parse each file). If you use the data files it will likely be much quicker to program and easier to maintain. Moreover, the TFBS modules already provide some support for transfac.

On a side note, please help us help you. I've noticed that many of your questions focus only on what appears to be the very next step in the process. It's perfectly acceptable to ask about how to use WWW::Mech and cookies to access a web site, but a more complete description of the problem might help us to provide you with better approaches to the overall problem rather than to just the next 10 lines of code in your program. Just 1 or 2 sentences explaining your goal (for example, "I have several multiple sequence alignments and I need to create a matrix from them, then I need to search transfac to see if that matrix is similar to any other known TF binding sites") might be enough for someone to mention a tool or two that already exist and that do exactly what you want.

HTH


In reply to Re: Howto fill in username and password in a popup cookie with Perl by bobf
in thread Howto fill in username and password in a popup cookie with Perl by monkfan

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.