- Taschenbuch: 464 Seiten
- Verlag: Manning; Auflage: 01 (19. Oktober 2006)
- Sprache: Englisch
- ISBN-10: 1932394508
- ISBN-13: 978-1932394504
- Größe und/oder Gewicht: 18,7 x 2,7 x 23,4 cm
- Durchschnittliche Kundenbewertung: 1 Kundenrezension
- Amazon Bestseller-Rang: Nr. 195.982 in Fremdsprachige Bücher (Siehe Top 100 in Fremdsprachige Bücher)
Minimal Perl for UNIX and Linux People (Englisch) Taschenbuch – 19. Oktober 2006
Kunden, die diesen Artikel gekauft haben, kauften auch
Es wird kein Kindle Gerät benötigt. Laden Sie eine der kostenlosen Kindle Apps herunter und beginnen Sie, Kindle-Bücher auf Ihrem Smartphone, Tablet und Computer zu lesen.
Geben Sie Ihre Mobiltelefonnummer ein, um die kostenfreie App zu beziehen.
Most books make Perl unnecessarily hard to learn by attempting to teach the whole language, including its many redundancies, while ignoring the reader's knowledge of related languages and concepts. This book makes Perl easy to learn by teaching a strategically designed subset that's familiar to UNIX/Linux people, and by capitalizing on their existing knowledge rather than ignoring it. With this book, readers learn a carefully designed subset of the language called "Minimal Perl", which was developed through five years of experience in training software professionals at major corporations. It makes Perl more accessible to those having UNIX/Linux skill levels ranging from elementary to expert, by capitalizing on their existing knowledge of important utilities (grep, awk), or essential concepts (filters, command substitution, looping). Dozens of detailed programming examples are shown, drawn from contemporary application areas such as system administration, networking, web development, databases, finance, HTML, CGI, and text analysis.
Über den Autor und weitere Mitwirkende
Tim Maher has worked for U.C. Berkeley as a Senior Programmer/Analyst, for the University of Utah as a Professor of Computer Science, and for AT&T, DEC, Sun Microsystems, Hewlett Packard, and Consultix (his own company) as a course developer and/or lecturer on operating systems and programming languages. Tim founded Seattle's SPUG, one of the oldest, largest, and most active Perl Users Groups, and served as its leader for its first six years. He serves on the Advisory Board of the University of Washington that oversees its Perl Certificate Program, and has led discussions in the Perl community about the development of a certification process for Perl programmers. He lives in Seattle, Washington.
He does so by basically comparing powerful perl one-liners to invocations of grep, sed, awk and find in the first part of his book. In the second part Maher introduces "advanced" techniques like lists, loops, subroutines, variable scoping and modules to help the reader write short but quite sophisticated programs.
The book comprises 400-odd pages with short appendix and a detailed index. The writing is clear and concise and there are lots of useful examples. He even helped me improve my knowledge of shell ;-). Sample chapters are available at the publishers website.
Die hilfreichsten Kundenrezensionen auf Amazon.com (beta)
The text includes many helpful tables. These illustrate Perl features and syntax, often in comparison to the Unix utilities grep, sed, and awk. The comparison tables also detail the different flavors of these utilities (classic, POSIX, and GNU). The text discusses commands used in the 1970s, and how the utilities have improved with the introduction of awk, Perl, and the GNU tools, which in turn borrow features from Perl. Other tables show problem solving commands, illustrating how different problems would be solved with grep, sed, awk, or Perl.
Recommended to those who do or want to spend time wrangling data on Unix. The text assumes a fair amount of Unix knowledge. If weak on Unix, first read "Learning the bash Shell" to learn a Unix shell. The second part of Minimal Perl covers Perl programming, which may obviate the need for "Learning Perl" or similar introductory Perl text.
I came at the book from a different angle. Perl is familiar, but the other shell tools aren't. I started exploring Linux and UNIX when the GUI shells were starting to become useful in their own right and find/grep/sed/awk didn't seem as important. Perl has largely been an application programming language for me, so I never learned more than the barest hint of its scripting power. There is a huge "shell scripting tool" shaped hole in my Perl and UNIX knowledge.
"Minimal Perl" has been rapidly filling that gap. Even the first 20 pages were enlightening - they showed information on some of the more useful command-line options to Perl along with plentiful examples. Remember that for the last nine years "perl" eq "application language" in my head. The only command line options I cared about were -w and -T, and I stopped caring about -w when 5.6 was released. My new understanding of -l, -n, and -p meant that I could suddenly whip out a quick one-liner for a simple task, rather than write too many lines of C-style code for the same job.
I have been bouncing through the book as I find one of my needs matched by a chapter subject, but the rest of the book has been more of the same. You practice using Perl in combination with other shell tools and then as a complete replacement for those tools. The concepts from this book have saved my [...] a few times already, as I was able to combine them with my existing knowledge of Perl to find and fix code issues quickly.
The writing style is enjoyable. "Minimal Perl" is written in a relaxed, light-hearted manner which still manages to convey thoughts very clearly. You will learn a lot about the differences between Perl and the shell tools, even if you weren't that familiar with the shell tools in the first place. You will learn about the author's almost unhealthy love of AWK before he discovered Perl. More importantly, you'll learn how to use Perl as more than an awkward replacement for C++.
The physical layout of the book is first-rate, which I have come to expect from Manning. The font is large and readable. The book is printed on good thick paper, which matters more than I would have thought. The tables and code samples are easy to find, although I would have appreciated a table listing in the table of contents. After double-checking through this book while writing the review, that's the only complaint I was able to come up with: a table listing would be nice. [...]
I recommend this book to anyone who knows Perl but hasn't used it to do any dirty work in the shell. This will have an impact on when and how you use Perl.
This book has brought be back, but only for certain purposes. The author shows how one-line Perl commands can perform tasks for which one might otherwise use sed or grep. In many cases the Perl command includes additional features not always found in the equivalent Unix command.
I have found this book invaluable in helping me to automate maintenance tasks on my website.
Yes, Perl 6 (object oriented Perl running in a virtual machines) is five or six years late, but when you are writing one-liners you don't need objects anyway.
Perhaps the world has gone overboard on this object-oriented thing. If you are like me and had abandoned Perl consider returning to it for certain tasks with the aid of Minimal Perl.
What really struck me personally, is that for a long time, I was baffled about why there was no simple way to extract columns or fields from fixed-width data. I used regular expression or split in Perl, which I thought was overkill. Unix has simple mechanisms using cut and awk for this, and after many hours scouring the net and published books, I couldn't find any coverage of a simple solution, until I came across this book.
If you do any automation on Unix (or even Windows) that requires extracting or manipulating text data, this book is an ultimate resource for your library. Anyone serious about Perl and/or system administration type of chores, should not pass this book up.
The book is also well written and enjoyable. You should have some basic abilities in perl or unix/linux, but it provides a lot of introductory material that is specific to this book's idiom of minimal perl. If you have questions about the book, the publisher provides a forum to ask the author.
If you believe in the unix way, but are sometimes frustrated by whichever unix you use, or especially if you switch between unices, this book offers a way to cure that frustration.