Hi, I've been using Perl for 10 days now and I have found the site extrememly useful and friendly. I am attempting to use the command line version of winzip to zip a file. The script works, but when I run it, a press any key to continue prompt appears and I have to press a key before it will do it's work. When I press a key it does what I expect. I think I should use '<', but I'm not sure where to put it. I tried inside the ticks after I invoke winzip and pass the filenames, but I still had to manually hit a key. Here is the code of my script. Thank you very much
my $input = "c:/Backups/UCSRSQL01/sortedREFDATAList.txt"; open(INPUT, $input) ; my $zipfile = <INPUT> ; my $path = "C:/Backups/UCSRSQL01"; $zipcommand = `"c:/program files/winzip/wzzip" $path/refdatabak.zip $p +ath/$zipfile`;

In reply to Script waiting on 'Press any key to continue' by deross

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.