34,333
edits
Changes
→= Handling Script Arguments
</pre>
In the above example the user was prompted for their name. Often it necessary to pass one or more arguments to a script at the point that it is executed. This is handled via a special variable called ''$args'' which is populated with any arguments which were passed through to the script when it was invoked. Taking our previous example, we can simply reference the $args variable in our script: