- The C Standard Library
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. The LWP (Library for WWW in Perl) suite of modules lets your programs download and extract information from the Web. Perl & LWP shows how to make web requests, submit forms, and even provide authentication information, and it demonstrates using regular expressions, tokens, and trees to parse HTML. In many cases Perl is used as a wrapper around other programs. This means that we run those other programs from our Perl program. For example we use Perl to collect the parameters needed by that program to make it easier for us to create the correct command line to run the other program.
- C Standard Library Resources
- C Programming Resources
- Selected Reading
Description
Perl Library For Mac System Calls Online
The C library function int system(const char *command) passes the command name or program name specified by command to the host environment to be executed by the command processor and returns after the command has been completed.
Declaration
Following is the declaration for system() function.
Perl Library For Mac System Calls Free
Parameters
![Perl Perl](https://spaceflight.nasa.gov/gallery/images/shuttle/sts-123/hires/s123e008018.jpg)
- command − This is the C string containing the name of the requested variable.
Return Value
The value returned is -1 on error, and the return status of the command otherwise.
Example
The following example shows the usage of system() function to list down all the files and directories in the current directory under unix machine.
Let us compile and run the above program that will produce the following result on my unix machine −
The following example shows the usage of system() function to list down all the files and directories in the current directory under windows machine.
Mac
Mac photo library too big. Let us compile and run the above program that will produce the following result on my windows machine −