Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6840359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:50:04+00:00 2026-05-26T23:50:04+00:00

I found this piece of code in perl system(zip $ZIP_DEBUG -r -9 itvlib.zip $include

  • 0

I found this piece of code in perl

system("zip $ZIP_DEBUG -r -9 itvlib.zip $include $exclude");

However I don’t understand how it is working. I mean system() is used to fire ‘system’ commands right ? So is this ‘zip’ command used here a ‘system’ command ?
But I tried firing just the following on the command prompt;

zip $ZIP_DEBUG -r -9 itvlib.zip arg1 arg2

It didn’t work !
it gave the following error:

'zip' is not recognized as an internal or external command,
operable program or batch file.

Well this shouldn’t have happened, since the command seems to use ‘zip’ as a system command. So this makes the command ‘zip’ mysterious

Can you please help me to understand this command with all its parameters?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:50:04+00:00Added an answer on May 26, 2026 at 11:50 pm
    system("zip $ZIP_DEBUG -r -9 itvlib.zip $include $exclude");
    

    is running a program named zip (probably zip.exe) somewhere on the path. $ZIP_DEBUG, $include, and $exclude are Perl variables that are interpolated into the command line before the command is run.

    If the system call works in the Perl script, but zip -? gives the 'zip' is not recognized as an internal or external command, operable program or batch file error, then the PATH of the Perl script must be different than the PATH in your command prompt. Or, there might be a zip command in the current directory when Perl executes the system command. (In Windows, the current directory is an implicit member of your PATH.)

    To see what the PATH is for the Perl script, you can add a print "$ENV{PATH}\n"; before the system command. To see what the PATH is in your command prompt, type PATH.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found this piece of code on Wikipedia. #include <stdio.h> int main(void) { int
I am trying to compile this piece of code found below. However, I got
I'm still trying to understand this piece of code that I found in a
I found this piece of code inside System.Web.ISAPIRuntime using Reflector public void DoGCCollect() {
I've found this piece of code on Koders : private ServiceProvider SiteServiceProvider { get
I write this piece of code with C# using ADO.NET Entity Framework. I found
Hey, in a tutorial C++ code, I found this particular piece of confusion: PlasmaTutorial1::PlasmaTutorial1(QObject
I found this piece of code which works fine for my input (a string
I found this piece of code from an earlier Stack Overflow question which describes
I'm using this piece of code I found ( http://impnerd.com/wordpress-hack-add-post-images-to-your-homepage ) to display the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.