in reply to Executing / Retrieving Output from Command

My apologies, I was sure I had posted the few lines I had in the script. There are only a couple of lines in it because all it's doing is taking a .gz file and trying to unzip it. I tried this :
results = `gunzip -cf <C:/temp/decrypt/out-3908.gz`; print $results;
and this to see
eval("results = `gunzip -cf <C:/temp/decrypt/out-3908.gz`"); print $results . " | " . $!;

Replies are listed 'Best First'.
Re^2: Executing / Retrieving Output from Command
by Corion (Patriarch) on Mar 15, 2010 at 19:59 UTC
    eval("results = `gunzip -cf <C:/temp/decrypt/out-3908.gz`");

    will likely be an error, because the backticks get interpolated in your double quotes. So unless gunzip -cf <C:/temp/decrypt/out-3908.gz returns Perl code, that won't work.

Re^2: Executing / Retrieving Output from Command
by BrowserUk (Patriarch) on Mar 15, 2010 at 20:22 UTC

    How big is the file you're unzipping?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.