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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |