Perlcheat Cheat Sheet by Nikolay Mishin (Mishin) Via Cheatography.Com/1008/Cs/396

Total Page:16

File Type:pdf, Size:1020Kb

Perlcheat Cheat Sheet by Nikolay Mishin (Mishin) Via Cheatography.Com/1008/Cs/396 perlcheat Cheat Sheet by Nikolay Mishin (mishin) via cheatography.com/1008/cs/396/ About Perlcheat REGEX METACHARS Escape sequences AUTHOR Juerd Waalboer, with the help ^ string begin \t tab (HT, TAB) of many Perl Monks. $ str. end (before \n) \n newline (LF, NL) the original PM http://perlmonks.org/?node_id= + one or more \r return (CR) post 216602 * zero or more \f form feed (FF) Damian Conway's http://perlmonks.org/?node_id= ? zero or one \a alarm (bell) (BEL) Perl 6 version 238031 {3,7} repeat in range \e escape (think troff) (ESC) home of the Perl http://juerd.nl/site.plp/perlcheat Cheat Sheet () capture \cK control char (example: VT) (?:) no capture \x{}, \x00 character whose ordinal is the given CONTEXTS [] character class hexadecimal number void | alternation \N{name} amed Unicode character or character sequence scalar \b word boundary \N{U+263D} Unicode character (example: FIRST list \z string end QUARTER MOON) http://perldoc.perl.org/perlre.html \o{}, \000 character whose ordinal is the given SIGILS octal number $scalar Perl image \l lowercase next char (think vi) @array \u uppercase next char (think vi) %hash \L lowercase till \E (think vi) &sub \U uppercase till \E (think vi) *glob \Q quote (disable) pattern metacharacters till \E ARRAYS,HASHES \E end either case modification or quoted ARRAYS HASHES section, think vi whole: @array %hash slice: @array[0, 2] @hash{'a', 'b'} REFERENCES element: $array[0] $hash{'a'} \ $$foo[1] == references $foo->[1] SCALAR VALUES $@%&* $$foo{bar}== number, string, reference, glob, undef dereference $foo->{bar} {} ${$$foo[1]}[2]== SYNTAX REGEX CHARCLASSES anon. hashref $foo->[1]->[2] for (LIST) { }, for (a;b;c) { } . [^\n] \() ${$$foo[1]}[2]== while ( ) { }, until ( ) { } \s [\x20\f\t\r\n] list of refs $foo->[1][2] \w [A-Za-z0-9_] if ( ) { } elsif ( ) { } else { } \d [0-9] unless ( ) { } elsif ( ) { } else { } SPECIAL VARIABLES \S, \W and \D negate for equals foreach (ALWAYS) $_ default variable $0 program name LINKS REGEX MODIFIERS $/ input separator Search the CPAN - metacp https://metacpan.org /i case insens. $\ output separator an.org /m line based ^$ $| autoflush Perl Weekly http://perlweekly.com/la /s . includes \n $! sys/libcall error test.html /x ign. wh.space http://www.perlmon $@ eval error PerlMonks - The /g global Monastery Gates ks.org/ $$ process ID \Q quote (disable) pattern metacharacters till \E What's happening in the http://perlbuzz.com/ $. line number \E end either case modification or quoted section, world of Perl programming, @ARGV command line args think vi including Perl 5, Perl 6, the @INC include paths CPAN and Parrot? FUNCTION RETURN LISTS @_ subroutine args The Comprehensive Perl http://cpan.org Archive Network - www.cp stat localtime caller %ENV environment an.org 0 dev 0 second 0 package NUMBERS vs STRINGS News and views of the Perl http://www.perl.com/ 1 ino 1 minute 1 filename programming language 2 2 hour 2 line NUMBERS STRINGS Perl programming docume http://perldoc.perl.org/ mode = = ntation - perldoc.perl.org ntation - perldoc.perl.org 3 3 day 3 . Perl Conferences, YAPCs, http://www.yapc.org/ nlink subroutine == != eq ne Workshops, and 4 uid 4 month-1 4 hasargs Hackathons < > <= >= lt gt le ge 5 gid 5 year-1900 5 Perl 6 http://perl6.org/ <=> cmp wantarray Perl 6 Tablet 2 - Basic http://tablets.perl6.org/ta 6 6 weekday 6 evaltext Syntax blet-2-basic-syntax.html DO rdev Learn Perl - learn.perl.org http://learn.perl.org/ use Modern::Perl; 7 size 7 yearday 7 use strict; Perl - Download http://www.perl.org/g is_require et.html use warnings; 8 8 is_dst 8 hints The Perl.org Online Library http://www.perl.org/b atime my $var; ooks/library.html 9 9 bitmask open() or die $!; Books and More (Videos) http://www.perl.org/medi mtime use Modules; a.html 10 just use Padre, the Perl IDE http://padre.perlide.org/ ctime DON'T perlcheat http://perldoc.perl.org/ 11 POSIX:: 3..9 only "$foo" perlcheat.html blksz $$variable_name Gabor Szabo Perl Trainer http://szabgab.com/ 12 strftime! http://docstore.mik.ua/o with EXPR `$userinput` and developer blcks relly/perl/prog3/ch32_36.htm Perl,Perl Mongers,Mongers http://pm.org /$userinput/ ,User Group,Meeting opendir & grep: capitalizing: Facebook vs Google+ for http://szabgab.com/fa opendir(DIR,"$SCANDATA"); Perl projects cebook-vs-google-plus- @files = sort(grep(/[0-9]\.[0-9] \-/,readdir(DIR))); word: $foo = ucfirst lc $foo; for-perl-projects.html closedir(DIR); each word: $foo =~ s/(\w+)/\u\L$1/g; Lections about Per from http://www.youtube.co Gabor Szabo m/results?search_quer hash iteration: referencing a subroutine: y=gabor+perl while (($key,$val) = each (%hash)) { } $SUBNAME = "junk"; mod_perl world http://perl.apache.org &$SUBNAME(@PARAMETERS); Interpreted Languages: http://hyperpolyglot.org getopt PHP, Perl, Python, Ruby /scripting foreach: use Getopt::Std; (Sheet One) %options=(); foreach $FILE (@FILES) { } Moose - A postmodern http://moose.iinteractiv getopts("he:f:s:SD:u:F:",\%options); object system for Perl e.com/ if ($options{h}) { &usage(); } OPERATOR PRECEDENCE Perl Training Australia - http://perltraining.com.a -> Perl Tips u/tips/ http://www.perlhowto.com/parsing_command_line_pa ++ -- Basic Perl (Ynon Perek | http://ynonperek.com/ rameters_with_getopt_long An Amazing Learning courses/basic-perl.html http://www.perlmonks.org/?node_id=455158 ** http://aplawrence.com/Unix/perlgetopts.html Experience) , super ! ~ \ u+ u- http://www.cs.mcgill.ca/~abatko/computers/programmi Perl Questions - Stack http://stackoverflow.com ng/perl/howto/getopts/ =~ !~ Overflow /questions/tagged/perl? http://perl.find-info.ru/perl/015/interface/1.htm * / % x sort=faq&pagesize=15 + - . Perl - Cheat sheets http://perl4everything.b Perl IDE Collection logspot.com/2010/12/p << >> source http://www.perlide.org/ erl-cheat-sheets-collect named uops ion.html http://padre.perlide.org/ The Perl Applic Padre < > <= >= lt gt le ge complete, working http://perlmeme.org/star ation Development and Refactoring Enviro == != <=> eq ne cmp examples of good Perl t_here/index.html nment (written in Perl 5) & code Eclipse with the EPIC plugin http://www.epic-id Perl Programming Tutorials http://www.devshed.co e.org/ or with Perlipse http://code.google.co | ^ m/c/b/Perl/ m/p/perlipse/ using dltk && Video from UniverTV http://univertv.ru/searc Acti proprietary Komodo IDE http://www.actives || h/?txt=perl&x=0&y=0 veS tate.com/Products/komodo_ide/ or free .. ... tate Komodo Edit http://www.activestate.com/ FAQ по perl и программи http://www.cyberguru.r Products/komodo_ide/komodo_edit.mhtml ?: рованию для web u/web/web-programmin = += -= *= etc. g/perl-web-programmin Kephra http://kephra.sourceforge.net Programmers g-faq-page2.html Editor along perl-like Paradigms, written in , => Perl FAQ PERL Agava http://hosting.agava.ru/ list ops Gvim www.vim.org with Perl support http://www.v faq/tech/docs/perl.shtml not im.org/scripts/script.php?script_id=556 and Modern::Perl Emacs www.gnu.org/software/emacs/ with CPerl Mode http://www.emacswiki.org/cgi-bin/wik or xor Modern::Perl i/CPerlMode enable all of the features of Modern Perl with one Link to perl cheat import Perl http://www.perlmonks.org/?node=Perl%20D Develo evelopment%20Tools perlcheat Develo evelopment%20Tools perlcheat Toolkit pment http://www.cheatography.com/mishin/cheat-sheets/ use Toolkit; and put all your favorite modules in a Tools perlcheat/ file: > cat $PERL5LIB/Toolkit/Macros/ALWAYS/M odules use strict; use warnings; use Carp; use perl-reference-card Smart::Comments; http://www.cheatography.com/mishin/cheat-sheets/ perl-reference-card/ use common::sense; supposed to be the same, with much lower memory 20-killer-perl-programming-tips usage, as: # # use strict qw(vars subs); # use http://www.cheatography.com/mishin/cheat-sheets/ feature qw(say state switch); # no warnings; # use 20-killer-perl-programming-tips-for-beginners/ warnings qw(FATAL closed threads internal debugging pack substr malloc # unopened portable prototype inplace io pipe unpack regexp # deprecated exiting glob digit printf utf8 layer # reserved parenthesis taint closure semicolon); # no warnings qw(exec newline); latest There is latest, which is no longer the latest. Demonstrates part of the naming problem. uni::perl Also, uni::perl which adds enabling unicode part of the mix. ToolSet ToolSet offers a subset of Toolkit's abilities, but without source filters. Moose I'll include Moose here, since it automatically adds strict and warnings to the calling package. Acme::Very::Modern::Perl Using this module, you'll get Modern::Perl, Toolkit, latest, uni::perl, perl5i, and common::sense with just one simple line. Source http://stackoverflow.com/questions/1625839/shoul d-i-use-commonsense-or-just-stick-with-use-strict- and-use-warnings Cheatographer Cheat Sheet Sponsor Nikolay Mishin (mishin) This cheat sheet was published on 1st June, 2012 and FeedbackFair, increase your conversion rate today! cheatography.com/mishin/ was last updated on 2nd July, 2012. Try it free! mishin.narod.ru http://www.FeedbackFair.com.
Recommended publications
  • Perlmonks.Com with a Gaim Plug-In SEEKING WISDOM
    PROGRAMMING Perl: A Gaim Plugin Get the news from perlmonks.com with a Gaim plug-in SEEKING WISDOM irst-time visitors to perlmonks. The Gaim project offers an instant messenger client that speaks a large com are rubbing their eyes in dis- Fbelief: High-caliber Perl hackers number of protocols. We’ll show you how to extend Gaim with Perl are jumping to answer even the simplest of newbie questions. The reason for this plugins. BY MICHAEL SCHILLI is that the community assigns XP (expe- rience) points for the best replies. And the more XP you have, the higher you answer a question correctly typically However, it can take a few seconds to climb in the ranking, from a novice, to a gets the most XP. Instead of pulling the download the content of a remote web monk, and slowly to expert status. web page with the latest questions time page. Both DNS name resolution and the and time again, it makes sense to script process of retrieving the content of the Best of Class the process and have the script let you requested web page can take some time, Due to the community dynamics on know when a new query arrives. during which the CPU should return to perlmonks.com, the The pmwatcher.pl script described other tasks. The tried-and-trusted POE first person to in this issue fetches the perlmonks. [3] framework provides exactly what we com page with the Newest Nodes at need. The POE kernel runs a single pro- regular intervals, remembering cess (and only a single thread), but uses older entries and sending out an cooperative multitasking between con- instant message when it discovers current tasks to ensure that each one is new postings.
    [Show full text]
  • Pragmaticperl-Interviews-A4.Pdf
    Pragmatic Perl Interviews pragmaticperl.com 2013—2015 Editor and interviewer: Viacheslav Tykhanovskyi Covers: Marko Ivanyk Revision: 2018-03-02 11:22 © Pragmatic Perl Contents 1 Preface .......................................... 1 2 Alexis Sukrieh (April 2013) ............................... 2 3 Sawyer X (May 2013) .................................. 10 4 Stevan Little (September 2013) ............................. 17 5 chromatic (October 2013) ................................ 22 6 Marc Lehmann (November 2013) ............................ 29 7 Tokuhiro Matsuno (January 2014) ........................... 46 8 Randal Schwartz (February 2014) ........................... 53 9 Christian Walde (May 2014) .............................. 56 10 Florian Ragwitz (rafl) (June 2014) ........................... 62 11 Curtis “Ovid” Poe (September 2014) .......................... 70 12 Leon Timmermans (October 2014) ........................... 77 13 Olaf Alders (December 2014) .............................. 81 14 Ricardo Signes (January 2015) ............................. 87 15 Neil Bowers (February 2015) .............................. 94 16 Renée Bäcker (June 2015) ................................ 102 17 David Golden (July 2015) ................................ 109 18 Philippe Bruhat (Book) (August 2015) . 115 19 Author .......................................... 123 i Preface 1 Preface Hello there! You have downloaded a compilation of interviews done with Perl pro- grammers in Pragmatic Perl journal from 2013 to 2015. Since the journal itself is in Russian
    [Show full text]
  • Compiling Your Own Perl
    APPENDIX A Compiling Your Own Perl Compiling Perl on a Unix-like system is simple. First, obtain the source for Perl from CPAN (dppl6++_l]j*lanh*knc+on_+NA=@IA*dpih). Then input the following sequence of commands: p]nvtrblanh)1*4*4*p]n*cv _`lanh)1*4*4 od?kjbecqna)`ao i]ga i]gapaop oq`ki]gaejop]hh On most Unix systems, this code will result in your lanh being installed into the +qon+ hk_]h+ directory tree. If you want it installed elsewhere—for example, in the local directory in your home directory—then replace od?kjbecqna)`a with the following: od?kjbecqna)`ao)@lnabet9z+hk_]h+ which should enable you to install Perl on your computer without root access. Note that the )`ao flag uses all the default options for compiling Perl. If you know that you want nonstandard configuration, just use the flag )`a instead to be prompted for your requirements. Be aware that the source for Perl 5.10.0 requires a patch to work properly with Catalyst. This is fixed in subsequent versions of Perl 5.10. If you need to test code guaranteed to run on a wide range of systems, you should con- sider using Perl version 5.8.7. Perl versions greater than 5.8.7 contain features that were not available in earlier versions of Perl, so Perl 5.8.7 is feature complete for all versions of Perl that Catalyst will run on (version 5.8.1 and later). Put another way, versions 5.8.8 and later have new features that you can’t rely on in earlier releases.
    [Show full text]
  • Modern Perl, Fourth Edition
    Prepared exclusively for none ofyourbusiness Prepared exclusively for none ofyourbusiness Early Praise for Modern Perl, Fourth Edition A dozen years ago I was sure I knew what Perl looked like: unreadable and obscure. chromatic showed me beautiful, structured expressive code then. He’s the right guy to teach Modern Perl. He was writing it before it existed. ➤ Daniel Steinberg President, DimSumThinking, Inc. A tour de force of idiomatic code, Modern Perl teaches you not just “how” but also “why.” ➤ David Farrell Editor, PerlTricks.com If I had to pick a single book to teach Perl 5, this is the one I’d choose. As I read it, I was reminded of the first time I read K&R. It will teach everything that one needs to know to write Perl 5 well. ➤ David Golden Member, Perl 5 Porters, Autopragmatic, LLC I’m about to teach a new hire Perl using the first edition of Modern Perl. I’d much rather use the updated copy! ➤ Belden Lyman Principal Software Engineer, MediaMath It’s not the Perl book you deserve. It’s the Perl book you need. ➤ Gizmo Mathboy Co-founder, Greater Lafayette Open Source Symposium (GLOSSY) Prepared exclusively for none ofyourbusiness We've left this page blank to make the page numbers the same in the electronic and paper books. We tried just leaving it out, but then people wrote us to ask about the missing pages. Anyway, Eddy the Gerbil wanted to say “hello.” Prepared exclusively for none ofyourbusiness Modern Perl, Fourth Edition chromatic The Pragmatic Bookshelf Dallas, Texas • Raleigh, North Carolina Prepared exclusively for none ofyourbusiness Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks.
    [Show full text]
  • Perl for System Administration
    Perl for System Administration Jacinta Richardson Paul Fenwick Perl for System Administration by Jacinta Richardson and Paul Fenwick Copyright © 2006-2008 Jacinta Richardson ([email protected]) Copyright © 2006-2008 Paul Fenwick ([email protected]) Copyright © 2006-2008 Perl Training Australia (http://perltraining.com.au) Conventions used throughout this text are based upon the conventions used in the Netizen training manuals by Kirrily Robert, and found at http://sourceforge.net/projects/spork Distribution of this work is prohibited unless prior permission is obtained from the copyright holder. This training manual is maintained by Perl Training Australia, and can be found at http://www.perltraining.com.au/notes.html. This is revision 1.2 of Perl Training Australia’s "Perl for System Administrators" training manual. Table of Contents 1. About Perl Training Australia....................................................................................................... 1 Training....................................................................................................................................... 1 Consulting ................................................................................................................................... 1 Contact us.................................................................................................................................... 1 2. Introduction....................................................................................................................................
    [Show full text]
  • Snort for Dummies.Pdf
    01_568353 ffirs.qxd 6/3/04 10:07 AM Page i Snort ™ FOR DUMmIES‰ 01_568353 ffirs.qxd 6/3/04 10:07 AM Page ii 01_568353 ffirs.qxd 6/3/04 10:07 AM Page iii Snort ™ FOR DUMmIES‰ by Charlie Scott, Paul Wolfe, and Bert Hayes 01_568353 ffirs.qxd 6/3/04 10:07 AM Page iv Snort™ For Dummies® Published by Wiley Publishing, Inc. 111 River Street Hoboken, NJ 07030-5774 Copyright © 2004 by Wiley Publishing, Inc., Indianapolis, Indiana Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permis- sion of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, e-mail: brandreview@ wiley.com. Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates in the United States and other countries, and may not be used without written permission.
    [Show full text]
  • Beginning Perl
    ffirs.indd ii 8/9/12 2:02 PM BEGINNING PERL INTRODUCTION . xxiii CHAPTER 1 What Is Perl? . .1 CHAPTER 2 Understanding the CPAN . 25 CHAPTER 3 Variables . .41 CHAPTER 4 Working with Data . 83 CHAPTER 5 Control Flow . 125 CHAPTER 6 References . 157 CHAPTER 7 Subroutines . 175 CHAPTER 8 Regular Expressions . 219 CHAPTER 9 Files and Directories . 249 CHAPTER 10 sort, map, and grep . 287 CHAPTER 11 Packages and Modules . 315 CHAPTER 12 Object Oriented Perl . 353 CHAPTER 13 Moose . 399 CHAPTER 14 Testing . 439 CHAPTER 15 The Interwebs . 481 CHAPTER 16 Databases . 523 CHAPTER 17 Plays Well with Others. 545 CHAPTER 18 Common Tasks . 567 CHAPTER 19 The Next Steps . .611 APPENDIX Answers to Exercises . 655 INDEX . 695 ffirs.indd i 8/9/12 2:02 PM ffirs.indd ii 8/9/12 2:02 PM BEGINNING Perl ffirs.indd iii 8/9/12 2:02 PM ffirs.indd iv 8/9/12 2:02 PM BEGINNING Perl Curtis “Ovid” Poe John Wiley & Sons, Inc. ffirs.indd v 8/9/12 2:02 PM Beginning Perl Published by John Wiley & Sons, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 w w w.wiley.com Copyright © 2012 by John Wiley & Sons, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-1-118-01384-7 ISBN: 978-1-118-22187-7 (ebk) ISBN: 978-1-118-23563-8 (ebk) ISBN: 978-1-118-26051-7 (ebk) Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning, or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600.
    [Show full text]
  • Perl Without Perl
    COLUMNS Practical Perl Tools Perl without Perl DAVID N. BLANK-EDELMAN David has over thirty years t’s not exactly a Zen koan, but it will have to do for this issue’s column. of experience in the systems Today we’re going to talk about how a method for parsing Perl without administration/DevOps/SRE using the actual Perl interpreter can offer a whole host of benefits. This field in large multiplatform I environments and is the author idea may be somewhat surprising because Perl has a reputation (perhaps of the O’Reilly Otter book (new book on SRE deserved) as being a language where “the only thing which can parse Perl forthcoming!). He is one of the co-founders (the language) is perl (the binary).” For some detailed examples of this criti- of the now global set of SREcon conferences. cism, see one of the well-known essays at http://www.perlmonks.org/index David is honored to serve on the USENIX .pl?node_id=44722, which is where that quote came from, originally attrib- Board of Directors where he helps to organize uted to Tom Christiansen. and engineer conferences like LISA and SREcon. [email protected] Part of the problem is that there are some ambiguities in the language that only resolve themselves definitively during runtime. This reality harshed many the mellow of aspiring tool creators until at some point someone asked the question, “Could we write something that could parse enough Perl to be useful? Maybe we won’t get 100% correct behavior, but how good does it have to be to let us get real work done?” Turns out, we can actually get really, really close.
    [Show full text]
  • The Perl Review by Brian D Foy the Perl Review Version 1.62 July 19
    The Perl Review www.theperlreview.com Mastering Perl by brian d foy The Perl Review version 1.62 July 19, 2009 The Perl Review www.theperlreview.com Configuration techniques 24 Table of Contents The wrong way 25 Slightly better (still bad) 26 Environment variables 27 Introduction Set defaults 28 About this course Sec1:2 Perl’s Config 29 The path to mastery Sec1:3 Command-line switches 30 Modulinos perl’s -s switch 31 Getopt::Std and getopt 32 Programs versus modules 5 Getopt::Std and getopts 33 Bring back main() 6 Getopt::Long 34 Tell Perl where to start 7 More GetOpt::Long 35 Make it a module 8 Extreme and odd cases 36 Who’s calling? 9 Configuration files 37 caller() in a module 10 ConfigReader::Simple 38 Compile as a module, run as a program 11 INI Files 39 Testing our program 12 Config::IniFiles 40 Adding to the program 13 Config::Scoped 41 Packaging 15 AppConfig 42 Wrapper programs 16 Using the program name 43 Installing programs 17 By operating system 44 Other methods 18 Writing your own interface 45 Distribute through CPAN 19 Good method names 46 Conclusion 20 Further reading 47 Further reading 21 Configuration Lightweight Persistence Persistence 49 Configuration goals 23 I • The Perl Review www.theperlreview.com Perl structures as text 50 Redefine subs in other packages 77 Using my own name 51 Export subroutines 78 Nicer output 52 Create new subs with AUTOLOAD 79 Reading Data::Dumper text 53 Mock subroutines 80 YAML Ain’t Markup 54 Fixing modules 81 YAML format 55 Wrapping subroutines 82 Reading in YAML 56 Subroutines as arguments
    [Show full text]
  • Mastering Perl, 2Nd Edition.Pdf
    SECOND EDITION Mastering Perl brian d foy Mastering Perl, Second Edition by brian d foy Copyright © 2014 brian d foy. All rights reserved. Printed in the United States of America. Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://my.safaribooksonline.com). For more information, contact our corporate/ institutional sales department: 800-998-9938 or [email protected]. Editor: Rachel Roumeliotis Indexer: Lucie Haskins Production Editor: Kara Ebrahim Cover Designer: Randy Comer Copyeditor: Becca Freed Interior Designer: David Futato Proofreader: Charles Roumeliotis Illustrator: Rebecca Demarest January 2014: Second Edition Revision History for the Second Edition: 2014-01-08: First release See http://oreilly.com/catalog/errata.csp?isbn=9781449393113 for release details. Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. Mastering Perl, Second Edition, the image of a vicuña and her young, and related trade dress are trademarks of O’Reilly Media, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a trade‐ mark claim, the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.
    [Show full text]
  • Perlgolf History
    Perlgolf History Perlgolf History Contents 1. Intro.............................................................................................................................................. 11 2. On The Game............................................................................................................................... 13 2.1. History..................................................................................................................................... 13 2.2. For Newbies ............................................................................................................................ 13 2.3. Notation................................................................................................................................... 13 2.4. Generic Rules.......................................................................................................................... 14 2.4.1. Perl Versions ..............................................................................................................................................................................................16 2.4.2. Some Assumptions .....................................................................................................................................................................................16 2.5. Open Source Tournament Engines.......................................................................................... 17 2.5.1. PGAS..........................................................................................................................................................................................................17
    [Show full text]
  • Wikireader Free Software and Free Contents
    WIKIREADER FREE SOFTWARE AND FREE CONTENTS A COLLECTION OF ARTICLES FROM WIKIPEDIA, THE FREE ENCYCLOPEDIA Last change: June 28th, 2004 W I K I M E D I A F O U N D A T I O N IMPRINT Authors: The volunteer writers of the english Wikipedia Editor: Thomas R. "TomK32" Koll Notable Wikipedians for this WikiReader: Used fonts: FreeSerif und FreeMono Cover: Last change in this edition: June 28th 2004 at 22:40 CEST Webdress of Wikipedia: http://en.wikipedia.org ISSN (Onlineedtion): 1613-7752 ISSN (Printedtion): not known yet A complete list of used articles and the names of all registered authors who worked on these articles can be found in the appendix. WIKIREADER INTERNET 1 ON WIKIPEDIA Wikipedia is a free encyclopedia which was started to give everyone a free source of knowledge which you not only can read but also extend in form of writing for it. On the website http://en.wikipedia.org you can not only find the current articles of Wikipedia but you can also start writing imediately without registration or identification. With this revolutionary method more than 700.000 articles were written since 2001 in more than 40 languages, and it's growing faster. In some languages Wikipedia is the first ency- clopedia ever. Since 2003 the Wikimedia Foundation is taking care of running the farm of webservers and also hosts and supports other projects like the multilinugual dictionary Wiktionary and the textbooks project WikiBooks. ON WIKIREADER WikiReader is a randomly published series of collections of Wikipedia articles, a detai- led overview over a certain topic presented in a editored form.
    [Show full text]