• Complain

Tom Christiansen - Perl Cookbook

Here you can read online Tom Christiansen - Perl Cookbook full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2009, publisher: O’Reilly Media, genre: Romance novel. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Tom Christiansen Perl Cookbook

Perl Cookbook: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Perl Cookbook" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Tom Christiansen: author's other books


Who wrote Perl Cookbook? Find out the surname, the name of the author of the book and a list of all author's works by series.

Perl Cookbook — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Perl Cookbook" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Perl Cookbook, 2nd Edition
Tom Christiansen
Nathan Torkington
Beijing Cambridge Farnham Kln Sebastopol Tokyo A Note Regarding Supplemental - photo 1

Beijing Cambridge Farnham Kln Sebastopol Tokyo

A Note Regarding Supplemental Files

Supplemental files and examples for this book can be found at http://examples.oreilly.com/9780596003135/. Please use a standard desktop web browser to access these files, as they may not be accessible from all ereader devices.

All code files or examples referenced in the book will be available online. For physical books that ship with an accompanying disc, whenever possible, weve posted all CD/DVD content. Note that while we provide as much of the media content as we are able via free download, we are sometimes limited by licensing restrictions. Please direct any questions or concerns to .

Foreword

They say that its easy to get trapped by a metaphor. But some metaphors are so magnificent that you dont mind getting trapped in them. Perhaps the cooking metaphor is one such, at least in this case. The only problem I have with it is a personal oneI feel a bit like Betty Crockers mother. The work in question is so monumental that anything I could say here would be either redundant or irrelevant.

However, that never stopped me before.

Cooking is perhaps the humblest of the arts; but to me humility is a strength, not a weakness. Great artists have always had to serve their artistic mediumgreat cooks just do so literally. And the more humble the medium, the more humble the artist must be in order to lift the medium beyond the mundane. Food and language are both humble media, consisting as they do of an overwhelming profusion of seemingly unrelated and unruly ingredients. And yet, in the hands of someone with a bit of creativity and discipline, things like potatoes, pasta, and Perl are the basis of works of art that hit the spot in a most satisfying way, not merely getting the job done, but doing so in a way that makes your journey through life a little more pleasant.

Cooking is also one of the oldest of the arts. Some modern artists would have you believe that so-called ephemeral art is a recent invention, but cooking has always been an ephemeral art. We can try to preserve our art, make it last a little longer, but even the food we bury with our pharoahs gets dug up eventually. So too, much of our Perl programming is ephemeral. This aspect of Perl cuisine has been much maligned. You can call it quick-and-dirty if you like, but there are billions of dollars out there riding on the supposition that fast food is not necessarily dirty food. (We hope.)

Easy things should be easy, and hard things should be possible. For every fast-food recipe, there are countless slow-food recipes. One of the advantages of living in California is that I have ready access to almost every national cuisine ever invented. But even within a given culture, Theres More Than One Way To Do It. Its said in Russia that there are more recipes for borscht than there are cooks, and I believe it. My moms recipe doesnt even have any beets in it! But thats okay, and its more than okay. Borscht is a cultural differentiator, and different cultures are interesting, and educational, and useful, and exciting.

So you wont always find Tom and Nat doing things in this book the way I would do them. Sometimes they dont even do things the same way as each other. Thats okayagain, this is a strength, not a weakness. I have to confess that I learned quite a few things I didnt know before I read this book. Whats more, Im quite confident that I still dont know it all. And I hope I dont any time soon. I often talk about Perl culture as if it were a single, static entity, but there are in fact many healthy Perl subcultures, not to mention sub-subcultures and supercultures and circumcultures in every conceivable combination, all inheriting attributes and methods from each other. It can get confusing. Hey, Im confused most of the time.

So the essence of a cookbook like this is not to cook for you (it cant), or even to teach you how to cook (though it helps), but rather to pass on various bits of culture that have been found useful, and perhaps to filter out other bits of culture that grew in the refrigerator when no one was looking. You in turn will pass on some of these ideas to other people, filtering them through your own experiences and tastes, your creativity and discipline. Youll come up with your own recipes to pass to your children. Just dont be surprised when they in turn cook up some recipes of their own, and ask you what you think. Try not to make a face.

I commend to you these recipes, over which Ive made very few faces.

Larry Wall, June, 1998

Preface

The investment group eyed the entrepreneur with caution, their expressions flickering from scepticism to intrigue and back again.

Your bold plan holds promise, their spokesman conceded. But it is costly and entirely speculative. Our mathematicians mistrust your figures. Why should we entrust our money into your hands? What do you know that we do not?

For one thing, he replied, I know how to balance an egg on its point without outside support. Do you? And with that, the entrepreneur reached into his satchel and delicately withdrew a fresh hens egg. He handed over the egg to the financial tycoons, who passed it amongst themselves trying to carry out the simple task. At last they gave up. In exasperation they declared, What you ask is impossible! No man can balance an egg on its point.

So the entrepreneur took back the egg from the annoyed businessmen and placed it upon the fine oak table, holding it so that its point faced down. Lightly but firmly, he pushed down on the egg with just enough force to crush in its bottom about half an inch. When he took his hand away, the egg stood there on its own, somewhat messy, but definitely balanced. Was that impossible? he asked.

Its just a trick, cried the businessmen. Once you know how, anyone can do it.

True enough, came the retort. But the same can be said for anything. Before you know how, it seems an impossibility. Once the way is revealed, its so simple that you wonder why you never thought of it that way before. Let me show you that easy way, so others may easily follow. Will you trust me?

Eventually convinced that this entrepreneur might possibly have something to show them, the skeptical venture capitalists funded his project. From the tiny Andalusian port of Palos de Moguer set forth the Nia , the Pinta , and the Santa Mara , led by an entrepreneur with a slightly broken egg and his own ideas: Christopher Columbus.

Many have since followed.

Approaching a programming problem can be like balancing Columbuss egg. If no one shows you how, you may sit forever perplexed, watching the eggand your programfall over again and again, no closer to the Indies than when you began. This is especially true in a language as idiomatic as Perl.

This book isnt meant to be a complete reference book for Perl. Keeping a copy of Programming Perl handy will let you look up exact definitions of operators, keywords, functions, pragmata, or modules. Alternatively, every Perl installation comes with a voluminous collection of searchable, online reference materials. If those arent where you can easily get at them, see your system administrator if you have one, or consult the documentation section at http://www.perl.com.

Neither is this book meant to be a bare-bones introduction for programmers who have never seen Perl before. Thats what Learning Perl , a kinder and gentler introduction to Perl, is designed for. (If youre on a Microsoft system, you might prefer the

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Perl Cookbook»

Look at similar books to Perl Cookbook. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Perl Cookbook»

Discussion, reviews of the book Perl Cookbook and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.