Skip to Content
Minimal Perl
book

Minimal Perl

by Tim Maher
October 2006
Beginner
504 pages
12h 58m
English
Manning Publications
Content preview from Minimal Perl

Chapter 8. Scripting techniques

8.1

Exploiting script-oriented functions

248

8.2

Pre-processing arguments

256

8.3

Executing code conditionally with if/else

259

8.4

Wrangling strings with concatenation and repetition operators

265

8.5

Interpolating command output into source code

269

8.6

Executing OS commands using system

275

8.7

Evaluating code using eval

283

8.8

Summary

292

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Perl

Beginning Perl

Curtis Ovid Poe
Think Perl 6

Think Perl 6

Laurent Rosenfeld, Allen B. Downey
Perl by Example

Perl by Example

Ellie Quigley
Learning Perl 6

Learning Perl 6

brian d foy

Publisher Resources

ISBN: 9781932394504Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link