Function Programming Details

The next few subtopics might be a bit on the shaky side for nonprogrammers. But hey, we're here to learn how to write scripts (which are very program-like), so damn the torpedoes, let's dive in! You are about to learn that functions can have local and global variables, present function arguments by value or by reference, be recursive, be autoloaded, be made to execute in an object-oriented way, and even be used to execute home-grown C programming language functions. If you are starting to feel queasy, put a yellow tab in the book at this point and move on to the math section of this chapter. Come back here after you have digested the rest of the information in this very important chapter. If you're still with me, ...

Get Korn Shell Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.