argv

How to read Perl command-line arguments

Perl FAQ: How do I read command-line arguments in Perl?

If you want to handle simple Perl command line arguments, such as filenames and strings, this tutorial is for you. If you want to handle command-line options (flags) in your Perl scripts (like "-h" or "--help"), this new Perl getopts command line options/flags tutorial is what you need.

PHP args - How to read command line arguments in PHP

PHP command line args FAQ: How do I read command line arguments in PHP?

Answer: You just need to access the PHP argv array, as shown in this example:

Syndicate content