Situation:
  * Win2K
  * ActiveState Perl

I'm trying to write a very simple script that will generate a URL with form information and open up Internet Explorer with that URL. (the script is below)

Everything works, except that the "&skip=5" does not show up in internet explorer no matter what I try. Putting it in quotes, single quotes, preceding with a backslash, etc. There is some kind of problem with windows/perl/& that I don't get.

here is the script (or one version of it) - if you want to test it, you should go to the website first and get the appropriate cookies setup for your location.

---------------------------------------------------- $date = sprintf("%04d%02d%0d", (localtime)[5]+1900, (localtime)[4]+1, (localtime)[3] ); $url = "www.moviefone.com/showtimes/closesttheaters.adp?date=$date\&sk +ip=5"; $command = "\"C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE\" $ur +l"; print $command; exec ($command); ----------------------------------------------------

Edit by tye to preserve formatting


In reply to windows command line problem? by xafwodahs

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.