NAME DESCRIPTION BASIC DOCUMENTATION Man.Fyi Mageia 6

Total Page:16

File Type:pdf, Size:1020Kb

NAME DESCRIPTION BASIC DOCUMENTATION Man.Fyi Mageia 6 Mageia 6 man.fyi PERLTOC(1) Perl Programmers Reference Guide PERLTOC(1) NAME perltoc − perl documentation table of contents DESCRIPTION This page provides a brief table of contents for the rest of the Perl documentation set. It is meant to be scanned quickly or grepped through to locate the proper section you’re looking for. BASIC DOCUMENTATION perl − The Perl 5 language interpreter SYNOPSIS GETTING HELP Overview Tutorials Reference Manual Internals and C Language Interface Miscellaneous Language-Specific Platform-Specific Stubs for Deleted Documents DESCRIPTION AVA ILABILITY ENVIRONMENT AUTHOR FILES SEE ALSO DIAGNOSTICS BUGS NOTES perlintro—abrief introduction and overview of Perl DESCRIPTION What is Perl? Running Perl programs Safety net Basic syntax overview Perl variable types Scalars, Arrays, Hashes Variable scoping Conditional and looping constructs if, while, for,foreach Builtin operators and functions Arithmetic, Numeric comparison, String comparison, Boolean logic, Miscellaneous Files and I/O Regular expressions Simple matching, Simple substitution, More complexregular expressions, Parentheses for capturing, Other regexp features Writing subroutines OO Perl Using Perl modules AUTHOR perlrun − howtoexecute the Perl interpreter SYNOPSIS DESCRIPTION #! and quoting on non-Unix systems OS/2, MS-DOS, Win95/NT, VMS Location of Perl perl v5.22.3 2018-04-27 1 Mageia 6 man.fyi PERLTOC(1) Perl Programmers Reference Guide PERLTOC(1) Command Switches −0[octal/hexadecimal],−a , −C [number/list] , −c , −d , −dt, −d:MOD[=bar,baz] , −dt:MOD[=bar,baz], −Dletters , −Dnumber, −e commandline , −E commandline , −f , −Fpattern , −h , −i[extension],−Idirectory , −l[octnum],−m[−]module , −M[−]module, −M[−]’module ...’, −[mM][−]module=arg[,arg]..., −n , −p , −s , −S , −t , −T , −u , −U , −v , −V , −V:configvar, −w , −W , −X , −x , −xdirectory ENVIRONMENT HOME , LOGDIR , PATH , PERL5LIB , PERL5OPT , PERLIO ,:bytes , :crlf , :mmap , :perlio , :pop , :raw,:stdio , :unix , :utf8 , :win32 , PERLIO_DEBUG , PERLLIB , PERL5DB , PERL5DB_THREADED , PERL5SHELL (specific to the Win32 port) , PERL_ALLOW_NON_IFS_LSP (specific to the Win32 port) , PERL_DEBUG_MSTATS , PERL_DESTRUCT_LEVEL , PERL_DL_NONLAZY , PERL_ENCODING , PERL_HASH_SEED , PERL_PERTURB_KEYS , PERL_HASH_SEED_DEBUG , PERL_MEM_LOG , PERL_ROOT (specific to the VMS port) , PERL_SIGNALS , PERL_UNICODE , SYS$LOGIN (specific to the VMS port) perlreftut − Mark’svery short tutorial about references DESCRIPTION Who Needs Complicated Data Structures? The Solution Syntax Making References Using References An Example ArrowRule Solution The Rest Summary Credits Distribution Conditions perldsc − Perl Data Structures Cookbook DESCRIPTION arrays of arrays, hashes of arrays, arrays of hashes, hashes of hashes, more elaborate constructs REFERENCES COMMON MISTAKES CAVEATONPRECEDENCE WHY YOU SHOULD ALWA YS use strict DEBUGGING CODE EXAMPLES ARRAYS OF ARRAYS Declaration of an ARRAYOFARRAYS Generation of an ARRAYOFARRAYS Access and Printing of an ARRAYOFARRAYS HASHES OF ARRAYS Declaration of a HASH OF ARRAYS Generation of a HASH OF ARRAYS Access and Printing of a HASH OF ARRAYS ARRAYS OF HASHES Declaration of an ARRAYOFHASHES Generation of an ARRAYOFHASHES Access and Printing of an ARRAYOFHASHES HASHES OF HASHES Declaration of a HASH OF HASHES Generation of a HASH OF HASHES Access and Printing of a HASH OF HASHES MORE ELABORATE RECORDS Declaration of MORE ELABORATE RECORDS perl v5.22.3 2018-04-27 2 Mageia 6 man.fyi PERLTOC(1) Perl Programmers Reference Guide PERLTOC(1) Declaration of a HASH OF COMPLEX RECORDS Generation of a HASH OF COMPLEX RECORDS Database Ties SEE ALSO AUTHOR perllol − Manipulating Arrays of Arrays in Perl DESCRIPTION Declaration and Access of Arrays of Arrays Growing Your Own Access and Printing Slices SEE ALSO AUTHOR perlrequick − Perl regular expressions quick start DESCRIPTION The Guide Simple word matching Using character classes Matching this or that Grouping things and hierarchical matching Extracting matches Matching repetitions More matching Search and replace The split operator use re 'strict' BUGS SEE ALSO AUTHOR AND COPYRIGHT Acknowledgments perlretut − Perl regular expressions tutorial DESCRIPTION Part 1: The basics Simple word matching Using character classes Matching this or that Grouping things and hierarchical matching 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Extracting matches Backreferences Relative backreferences Named backreferences Alternative capture group numbering Position information Non-capturing groupings Matching repetitions 0, 1, 2, 3, 4, 5, 6 Possessive quantifiers Building a regexp Using regular expressions in Perl Part 2: Power tools More on characters, strings, and character classes Compiling and saving regular expressions Composing regular expressions at runtime Embedding comments and modifiers in a regular expression perl v5.22.3 2018-04-27 3 Mageia 6 man.fyi PERLTOC(1) Perl Programmers Reference Guide PERLTOC(1) Looking ahead and looking behind Using independent subexpressions to prevent backtracking Conditional expressions Defining named patterns Recursive patterns Abit of magic: executing Perl code in a regular expression Backtracking control verbs Pragmas and debugging BUGS SEE ALSO AUTHOR AND COPYRIGHT Acknowledgments perlootut − Object-Oriented Programming in Perl Tutorial DATE DESCRIPTION OBJECT-ORIENTED FUNDAMENTALS Object Class Methods Attributes Polymorphism Inheritance Encapsulation Composition Roles When to Use OO PERL OO SYSTEMS Moose Declarative sugar,Roles built-in, A miniature type system, Full introspection and manipulation, Self-hosted and extensible, Rich ecosystem, Manymore features Class::Accessor Class::Tiny Role::Tiny OO System Summary Moose, Class::Accessor,Class::Tiny, Role::Tiny Other OO Systems CONCLUSION perlperf − Perl Performance and Optimization Techniques DESCRIPTION OVERVIEW ONE STEP SIDEWAYS ONE STEP FORWARD ANOTHER STEP SIDEWAYS GENERAL GUIDELINES BENCHMARKS Assigning and Dereferencing Variables. Search and replace or tr PROFILING TOOLS Devel::DProf Devel::Profiler Devel::SmallProf Devel::FastProf Devel::NYTProf SORTING Elapsed Real Time, User CPU Time, System CPU Time perl v5.22.3 2018-04-27 4 Mageia 6 man.fyi PERLTOC(1) Perl Programmers Reference Guide PERLTOC(1) LOGGING Logging if DEBUG (constant) POSTSCRIPT SEE ALSO PERLDOCS MAN PAGES MODULES URLS AUTHOR perlstyle − Perl style guide DESCRIPTION perlcheat − Perl 5 Cheat Sheet DESCRIPTION The sheet ACKNOWLEDGEMENTS AUTHOR SEE ALSO perltrap − Perl traps for the unwary DESCRIPTION AwkTraps C/C++ Traps JavaScript Traps Sed Traps Shell Traps Perl Traps perldebtut − Perl debugging tutorial DESCRIPTION use strict Looking at data and −w and v help Stepping through code Placeholder for a, w,t,T REGULAR EXPRESSIONS OUTPUT TIPS CGI GUIs SUMMARY SEE ALSO AUTHOR CONTRIBUTORS perlfaq − frequently asked questions about Perl VERSION DESCRIPTION Where to find the perlfaq Howtouse the perlfaq Howtocontribute to the perlfaq What if my question isn’tanswered in the FA Q? TABLE OF CONTENTS perlfaq1 − General Questions About Perl, perlfaq2 − Obtaining and Learning about Perl, perlfaq3 −Programming Tools, perlfaq4 − Data Manipulation, perlfaq5 − Files and Formats, perlfaq6 − Regular Expressions, perlfaq7 − General Perl Language Issues, perlfaq8 − System Interaction, perlfaq9 − Web, Email and Networking THE QUESTIONS perlfaq1: General Questions About Perl perl v5.22.3 2018-04-27 5 Mageia 6 man.fyi PERLTOC(1) Perl Programmers Reference Guide PERLTOC(1) perlfaq2: Obtaining and Learning about Perl perlfaq3: Programming Tools perlfaq4: Data Manipulation perlfaq5: Files and Formats perlfaq6: Regular Expressions perlfaq7: General Perl Language Issues perlfaq8: System Interaction perlfaq9: Web, Email and Networking CREDITS AUTHOR AND COPYRIGHT perlfaq1 − General Questions About Perl VERSION DESCRIPTION What is Perl? Who supports Perl? Who develops it? Whyisitfree? Which version of Perl should I use? What are Perl 4, Perl 5, or Perl 6? What is Perl 6? Howstable is Perl? Howoften are newversions of Perl released? Is Perl difficult to learn? Howdoes Perl compare with other languages likeJava, Python, REXX, Scheme, or Tcl? Can I do [task] in Perl? When shouldn’tIprogram in Perl? What’sthe difference between ‘‘perl’’and ‘‘Perl’’? What is a JAPH? Howcan I convince others to use Perl? <http://www.perl.org/about.html>, <http://perltraining.com.au/whyperl.html> AUTHOR AND COPYRIGHT perlfaq2 − Obtaining and Learning about Perl VERSION DESCRIPTION What machines support Perl? Where do I get it? Howcan I get a binary version of Perl? Idon’thav e aCcompiler.How can I build my own Perl interpreter? Icopied the Perl binary from one machine to another,but scripts don’twork. Igrabbed the sources and tried to compile but gdbm/dynamic loading/malloc/linking/... failed. HowdoImakeitwork? What modules and extensions are available for Perl? What is CPAN? Where can I get information on Perl? <http://www.perl.org/>, <http://perldoc.perl.org/>, <http://learn.perl.org/> What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? <http://www.perl.org/>, <http://learn.perl.org/>, <http://jobs.perl.org/>, <http://lists.perl.org/> Where can I post questions? Perl Books Which magazines have Perl content? Which Perl blogs should I read? What mailing lists are there for Perl? Where can I buy a commercial version of Perl? Where do I send bug reports? AUTHOR AND COPYRIGHT perlfaq3 − Programming Tools VERSION perl v5.22.3 2018-04-27 6 Mageia 6 man.fyi PERLTOC(1) Perl Programmers Reference Guide PERLTOC(1) DESCRIPTION HowdoIdo(anything)? Basics, perldata − Perl
Recommended publications
  • Learning to Program in Perl
    Learning to Program in Perl by Graham J Ellis Languages of the Web Learning to Program in Perl version 1.7 Written by Graham Ellis [email protected] Design by Lisa Ellis Well House Consultants, Ltd. 404, The Spa, Melksham, Wiltshire SN12 6QL England +44 (0) 1225 708 225 (phone) +44 (0) 1225 707 126 (fax) Find us on the World Wide Web at: http://www.wellho.net Or contact us at: [email protected] Copyright © 2003 by Well House Consultants, Ltd. Printed in Great Britain. Printing History May 1999 1.0 First Edition February 2000 1.1 Minor additions June 2000 1.2 Compliation of modules October 2000 1.3 Name change, revisions April 2002 1.4 Added modules September 2002 1.5 Added modules January 2003 1.6 Updated modules February 2003 1.7 Updated modules This manual was printed on 21 May 2003. Notice of Rights All rights reserved. No part of this manual, including interior design, may be reproduced or translated into any language in any form, or transmitted in any form or by any means electronic, mechanical, photocopying, recording or otherwise, without prior written permission of Well House Consultants except in the case of brief quotations embodied in critical articles and reviews. For more information on getting permission for reprints and excerpts, contact Graham Ellis at Well House Consultants. This manual is subject to the condition that it shall not, by way of trade or otherwise, be lent, sold, hired out or otherwise circulated without the publisher's prior consent, incomplete nor in any form of binding or cover other than in which it is published and without a similar condition including this condition being imposed on the subsequent receiver.
    [Show full text]
  • A Java Virtual Machine Extended to Run Parrot Bytecode
    A JAVA VIRTUAL MACHINE EXTENDED TO RUN PARROT BYTECODE A thesis submitted to the University of Manchester for the degree of Master of Science in the Faculty of Engineering and Physical Sciences 2006 By Martin Dahl School of Computer Science Contents Abstract 8 Declaration 9 Copyright 10 Acknowledgements 11 1 Introduction 12 1.1 Objectives and Motivation . 13 1.2 Related Work . 13 1.2.1 Parrot . 14 1.2.2 Pugs . 14 1.2.3 PearColator . 14 1.3 Organisation of the Thesis . 15 2 The Parrot Project 16 2.1 Perl 6 . 17 2.1.1 Design . 17 2.1.2 Perl 6 Internals . 18 2.1.3 Pugs . 19 2.1.4 Parrot Perl 6 Compiler . 19 2.2 Virtual Machine . 20 2.2.1 Design . 20 2.2.2 Architecture . 21 2.2.3 Registers . 22 2.2.4 Instruction Set . 23 2.2.5 Parrot Assembly Language and Intermediate Representation 24 2 2.3 Parrot Magic Cookies . 24 2.3.1 Core PMCs . 24 2.3.2 Other PMCs . 27 2.4 Compiler suite . 27 2.4.1 Perl 6 . 27 2.4.2 Other languages . 27 2.5 Summary . 28 3 Parrot Bytecode Format 30 3.1 Header . 31 3.2 Bytecode Format 1 . 33 3.2.1 Directory Segment . 34 3.2.2 Constant Table Segment . 35 3.2.3 Bytecode Segment . 38 3.2.4 Debug Segment . 38 3.2.5 Fixup Segment . 39 3.3 Summary . 40 4 Parakeet 41 4.1 Overview . 42 4.2 Jikes RVM . 43 4.3 PearColator .
    [Show full text]
  • Minimal Perl for UNIX and Linux People
    Minimal Perl For UNIX and Linux People BY TIM MAHER MANNING Greenwich (74° w. long.) For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact: Special Sales Department Manning Publications Co. Cherokee Station PO Box 20386 Fax: (609) 877-8256 New York, NY 10021 email: [email protected] ©2007 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Manning Publications Co. Copyeditor: Tiffany Taylor 209 Bruce Park Avenue Typesetters: Denis Dalinnik, Dottie Marsico Greenwich, CT 06830 Cover designer: Leslie Haimes ISBN 1-932394-50-8 Printed in the United States of America 12345678910–VHG–1009080706 To Yeshe Dolma Sherpa, whose fortitude, endurance, and many sacrifices made this book possible. To my parents, Gloria Grady Washington and William N. Maher, who indulged my early interests in literature. To my limbic system, with gratitude for all the good times we’ve had together.
    [Show full text]
  • A Retrospective on Pugs ☺
    ☺ A retrospective on Pugs ☺ Ingo Blechschmidt <[email protected]> Augsburg.pm (April 13th, 2015) Pugs, an experimental Perl 6 platform: a retrospective 1 / 37 April 13th, 2015 Abstract. “Hi. Today I have started working on specifying and implementing Feath- erweight Perl 6 (FP6), a side-effect-free subset of Perl 6.” Audrey Tang used these words to unveil the Pugs project in February of 2005. Initially conceived as an imple- mentation of a small subset of Perl 6 in Haskell, the project quickly grew to contain a full-fledged compiler and interpreter for Perl 6 and aracted a large and diverse community. e talk will give a subjective survey of the history of Pugs. We will pay particular aention to the special manner with which Audrey led the project and what the phi- losophy “-Ofun” meant to the developers. We’ll also discuss which parts of Pugs were absorbed into other implementations of Perl 6 and which influence Pugs had on the Perl and Haskell communities. About me. I contributed to Pugs as a school student in 2005, at first by porting modules and writing tests, then gradually also by writing Haskell code and later by implement- ing a JavaScript backend. Audrey and the unique spirit in the Pugs community had a strong and lasting influence on me (exposing me to Haskell, category theory, and a beautiful way of tending communities); I look back on very exciting and fun days. Warning. e account is mostly from memory and not properly researched. Try not to trust it! Also note that the timeline covers only the year 2005 and that the code excerpts are edited for legibility, i.
    [Show full text]
  • Perl 6 Audrey Tang
    Deploying Perl 6 Audrey Tang 1 Perl 6 is here Today! 2 Perl 6 is here Today! (YAPC::NA 2005) 3 Pugs 6.2.12 •Released on June 26th •3x faster build time •10x faster compilation •2x faster runtime •2000+ commits since 6.2.11 4 Parrot 0.4.5 •Released last June 19th •Unicode identifiers •Hierarchical namespace •New .NET CLR translator •Much faster compiler tools 5 Great for experimenting 6 But not for production 7 ...not this Christmas 8 9 CPAN is the language 10 Perl is just its syntax 11 Perl 5.000b3h (October 1994) 12 • use 5.000; • use strict; • require 'fastcwd.pl'; • require 'newgetopt.pl'; • require 'exceptions.pl'; • # ... • 13 Continuity++ 14 Pugs 6.2.2 (June 2005) 15 • use v6-pugs; • use perl5:DBI; • use perl5:Encode; • use perl5:Template; • # ... • 16 Still need to install Pugs 17 Perl 5.9.3 (Jan 2006) 18 • use v5.9.3; • use feature qw(switch say err ~~); • given (shift()) { • when ['‐h', '‐‐help'] { • say "Usage: $0"; • } • default { • $0 ~~ 'moose.exe' err die "Not Moose"; • } • } • 19 How to get Perl 6 into Production? 20 Production • Work with existing code • Must support Perl 5 and XS • No from‐scratch rewrites 21 Frontends? Tcl Python Scheme Parrot 22 Frontends? Tcl Python Scheme Perl 5 (Ponie) Parrot Perl 6 23 Backends! Pugs Java Haskell Perl 5 Script 24 Backends! JVM? YARV? Pugs CLR? PyPy? Java Haskell Perl 5 Script 25 Pugs on Perl 5 26 Perl 6 Runtime Implemented as Perl 5 Modules 27 Sane Perl 5 (not source filters) 28 Available On CPAN Today 29 Moose.pm ☯ 30 What is Moose? • Complete object model for Perl 5 • Based on the
    [Show full text]
  • Haskell Communities and Activities Report
    Haskell Communities and Activities Report http://www.haskell.org/communities/ Eighth Edition – May 13, 2005 Andres L¨oh (ed.) Perry Alexander Lloyd Allison Tiago Miguel Laureano Alves Krasimir Angelov Alistair Bayley J´er´emy Bobbio Bj¨orn Bringert Niklas Broberg Paul Callaghan Mark Carroll Manuel Chakravarty Olaf Chitil Koen Claessen Catarina Coquand Duncan Coutts Philippa Cowderoy Alain Cr´emieux Iavor Diatchki Atze Dijkstra Shae Erisson Sander Evers Markus Forsberg Simon Foster Leif Frenzel Andr´eFurtado John Goerzen Murray Gross Walter Gussmann Jurriaan Hage Sven Moritz Hallberg Thomas Hallgren Keith Hanna Bastiaan Heeren Anders H¨ockersten John Hughes Graham Hutton Patrik Jansson Johan Jeuring Paul Johnson Isaac Jones Oleg Kiselyov Graham Klyne Daan Leijen Huiqing Li Andres L¨oh Rita Loogen Salvador Lucas Christoph Luth¨ Ketil Z. Malde Christian Maeder Simon Marlow Conor McBride John Meacham Serge Mechveliani Neil Mitchell William Garret Mitchener Andy Moran Matthew Naylor Rickard Nilsson Jan Henry Nystr¨om Sven Panne Ross Paterson Jens Petersen John Peterson Simon Peyton-Jones Jorge Sousa Pinto Bernie Pope Claus Reinke Frank Rosemeier David Roundy George Russell Chris Ryder David Sabel Uwe Schmidt Martijn Schrage Peter Simons Anthony Sloane Dominic Steinitz Donald Bruce Stewart Martin Sulzmann Autrijus Tang Henning Thielemann Peter Thiemann Simon Thompson Phil Trinder Arjan van IJzendoorn Tuomo Valkonen Eelco Visser Joost Visser Malcolm Wallace Ashley Yakeley Jory van Zessen Bulat Ziganshin Preface You are reading the 8th edition of the Haskell Communities and Activities Report (HCAR). These are interesting times to be a Haskell enthusiast. Everyone seems to be talking about darcs (→ 6.3) and Pugs (→ 6.1) these days, and it is nice to see Haskell being mentioned in places where it usually was not.
    [Show full text]
  • Pugs Perl 6 for Real Autrijus Tang CUFP 2005, Tallinn Perl Is Ergonomic
    Pugs Perl 6 For Real http://pugscode.org/ Autrijus Tang CUFP 2005, Tallinn Perl is ergonomic P is for Practical Manipulexity & Whipuptitude Manipulexity C Perl sed awk shell (circa. 1990) Whipuptitude Abstraction → Sexy Closures Bless / Tie BEGIN block Shorthand → Natural Regex Contexts $_ as Topic Stepping sideways CPAN is versatile No coding = Best coding 10+ years 2500+ authors 8000+ modules Smoke Testing Issue Tracking Rating & Discussion Package Management Vocabulary > Syntax Addictive Super glue Jenga Syndrome Perl 6 is powerful RFC Parrot Apocalypses Lazy Evaluation Rebindable Grammar Dependent Constrained Soft Typing Traits Metamodel MMD on Type & Value Syntactic Aspartame without Bloat use perl5:DBI; use jsan:DOM; …but it stayed Imaginary for 5 years Perl6::Rules P6C/PIR PGE/PAST Deadlocked: Insufficient Manipulexity Haskell is fantastic SVK steals from the best: Darcs “The Dream that stuff are made of” “An alien language” $work in C Terabytes of AFP Evil Binary Format Old AIX machine Parse::AFP Prototype in perl5 Leaks horribly Hard to refactor OpenAFP.hs 30 days 3000 lines Highly efficient touchForeignPtr unsafeInterleaveIO WriterT ReaderT IO 3-arg class with Fundeps DSL, TH, Generics (Kudos to #haskell) Feb 1st TaPL arrived as an exercise… Pugs is expansive Feb 6th Primitive Interpreter (1|2)+(3|4)→(4|5|6) Parsec.Expr Feb 16th Imperative runtime say “Hello, world” ContT ReaderT Feb 23rd Test.pm runs is(1+1, 2, ‘add’) 10,000 tests today Mar 19th PCRE Regex s:p5:g/x/Y/; hsregex Apr 26th BEGIN blocks use fp; unsafePerformIO May
    [Show full text]
  • Intermediate Perl
    SECOND EDITION Intermediate Perl Randal L. Schwartz, brian d foy, and Tom Phoenix Beijing • Cambridge • Farnham • Köln • Sebastopol • Tokyo Intermediate Perl, Second Edition by Randal L. Schwartz, brian d foy, and Tom Phoenix Copyright © 2012 Randal Schwartz, brian d foy, Tom Phoenix. 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]. Editors: Simon St. Laurent and Shawn Wallace Indexer: Lucie Haskins Production Editor: Kristen Borg Cover Designer: Karen Montgomery Copyeditor: Absolute Service, Inc. Interior Designer: David Futato Proofreader: Absolute Service, Inc. Illustrator: Rebecca Demarest March 2006: First Edition. August 2012: Second Edition. Revision History for the Second Edition: 2012-07-20 First release See http://oreilly.com/catalog/errata.csp?isbn=9781449393090 for release details. Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. Intermediate Perl, the image of an alpaca, 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 trademark 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 con- tained herein.
    [Show full text]
  • 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]
  • Learning Perl. 5Th Edition [PDF]
    Learning Perl ,perlroadmap.24755 Page ii Tuesday, June 17, 2008 8:15 AM Other Perl resources from O’Reilly Related titles Advanced Perl Programming Perl Debugger Pocket Intermediate Perl Reference Mastering Perl Perl in a Nutshell Perl 6 and Parrot Essentials Perl Testing: A Developer’s Perl Best Practices Notebook Perl Cookbook Practical mod-perl Perl Books perl.oreilly.com is a complete catalog of O’Reilly’s books on Perl Resource Center and related technologies, including sample chapters and code examples. Perl.com is the central web site for the Perl community. It is the perfect starting place for finding out everything there is to know about Perl. Conferences O’Reilly brings diverse innovators together to nurture the ideas that spark revolutionary industries. We specialize in document- ing the latest tools and systems, translating the innovator’s knowledge into useful skills for those in the trenches. Visit conferences.oreilly.com for our upcoming events. Safari Bookshelf (safari.oreilly.com) is the premier online refer- ence library for programmers and ITprofessionals. Conduct searches across more than 1,000 books. Subscribers can zero in on answers to time-critical questions in a matter of seconds. Read the books on your Bookshelf from cover to cover or sim- ply flip to the page you need. Try it today with a free trial. main.title Page iii Monday, May 19, 2008 11:21 AM FIFTH EDITION LearningTomcat Perl™ The Definitive Guide Randal L. Schwartz,Jason Tom Brittain Phoenix, and and Ian brian F. Darwin d foy Beijing • Cambridge • Farnham • Köln • Sebastopol • Taipei • Tokyo Learning Perl, Fifth Edition by Randal L.
    [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]
  • Effective Perl Programming
    Effective Perl Programming Second Edition The Effective Software Development Series Scott Meyers, Consulting Editor Visit informit.com/esds for a complete list of available publications. he Effective Software Development Series provides expert advice on Tall aspects of modern software development. Books in the series are well written, technically sound, and of lasting value. Each describes the critical things experts always do—or always avoid—to produce outstanding software. Scott Meyers, author of the best-selling books Effective C++ (now in its third edition), More Effective C++, and Effective STL (all available in both print and electronic versions), conceived of the series and acts as its consulting editor. Authors in the series work with Meyers to create essential reading in a format that is familiar and accessible for software developers of every stripe. Effective Perl Programming Ways to Write Better, More Idiomatic Perl Second Edition Joseph N. Hall Joshua A. McAdams brian d foy Upper Saddle River, NJ • Boston • Indianapolis • San Francisco New York • Toronto • Montreal • London • Munich • Paris • Madrid Capetown • Sydney • Tokyo • Singapore • Mexico City 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 the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals. The authors and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein.
    [Show full text]