Chapter 8. Scripting techniques
Exploiting script-oriented functions | ||
Pre-processing arguments | ||
Executing code conditionally with | ||
Wrangling strings with concatenation and repetition operators | ||
Interpolating command output into source code | ||
Executing OS commands using | ||
Evaluating code using | ||
Summary |
Those nifty one-line commands you saw in part 1 are easy to type, and they’re adequate for an impressively wide variety of common tasks. And gosh darn it, you might even say they’re cute, if not downright elegant.
But sooner or later, you’ll need to write programs that can validate their arguments, handle arguments that aren’t filenames, capture and manipulate outputs from Unix commands, process inputs ...
Get Minimal Perl 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.