Proceedings YAPC::Europe 2012 .Com Perl Software Development Services Table of Contents 

Total Page:16

File Type:pdf, Size:1020Kb

Proceedings YAPC::Europe 2012 .Com Perl Software Development Services Table of Contents  Proceedings YAPC::Europe 2012 .com Perl Software Development Services Table of contents Foreword 5 FatPacker: understanding and appreciating the insanity 6 Vorbild::Beitrag::POD 8 CGI.pm MUST DIE - Together we shall annihilate CGI.pm! 9 CPANTS: Kwalitative website and its tools 10 Designing the Internet of Things: Arduino and Perl 11 Dancing with WebSockets 12 Dancer 2 - Official status: 14 Practical Dancer: moving away from CGI 16 Bringing Perl to a Younger Generation 18 Asynchronous programming FTW! 22 Mojolicious 24 Continuous deployment with Perl 36 Array programming for mere mortals 37 Ontology Aware Applications 42 Distributed Code Review in Perl - State of the Practice 48 address-sanitizer - A fast memory error detector 52 Exceptional Perl 6 55 The joy of breaking stuff 59 Macros in Rakudo 66 Why statement modifiers can harm maintainability! 70 A discussion on how to organize a Perl Mongers group 72 Building C/C++ libraries with Perl 74 8PSMET#1*O0OMJOF"DDPNNPEBUJPO3FTFSWBUJPOTBOETUJMMHSPXJOH 8FOFFE1FSM%FWFMPQFST .Z4RM%#"T 8FVTF1FSM 1VQQFU "QBDIF 4PGUXBSF%FWFMPQFST 4ZT"ENJOT .Z42- .FNDBDIF (JU -JOVY $JTDP 8FC%FTJHOFST 'SPOU&OE%FWFMPQFST +VOJQFSBOENPSF /FUXPSL&OHJOFFSTBOENPSFw /08)*3*/( (SFBUMPDBUJPOJOUIFDFOUFSPG"NTUFSEBN $PNQFUJUJWF4BMBSZ3FMPDBUJPO1BDLBHF *OUFSOBUJPOBM SFTVMUESJWFOEZOBNJDXPSLFOWJSPONFOU *OUFSFTUFE XXXCPPLJOHDPNKPCT Foreword 5 Welcome to YAPC::Europe 2012. This is the fourteenth European Perl conference! The Frankfurt 8PSMET#1*O0OMJOF"DDPNNPEBUJPO3FTFSWBUJPOTBOETUJMMHSPXJOH Perlmongers have great pleasure in hosting this event this year. We‘d like to welcome you here in Frankfurt. The city that is now the heart of the Perl community for at least days. We have attendees from more than 40 countries all over the world, so there is a rich mix of different cultures and different people. Such an event would not be possible without you - the attendees, speakers, and sponsors. Please take the chance to get to know lots of new people and talk to old friends. Please welcome the at- tendees who are new to Perl conferences and introduce them to other Perl people. We are sure that the talks and the discussions from this Perl conference will make a major contri- bution to the Perl world. It will bring new ideas to the surface and existing ideas to new users. With more than 80 talk a lot of topics are covered. 8FOFFE1FSM%FWFMPQFST .Z4RM%#"T 8FVTF1FSM 1VQQFU "QBDIF In these proceedings you find the articles for some talks. We hope that the papers will help to re- 4PGUXBSF%FWFMPQFST 4ZT"ENJOT .Z42- .FNDBDIF (JU -JOVY $JTDP mind what was said in the talks when you are back home. 8FC%FTJHOFST 'SPOU&OE%FWFMPQFST +VOJQFSBOENPSF /FUXPSL&OHJOFFSTBOENPSFw The Frankfurt Perlmongers look forward to seeing over 80 great talks and meeting over 00 people. Enjoy the conference! Wieland Pusch, Max Maischein, Renée Bäcker /08)*3*/( Board of Frankfurt Perlmongers e.V. (SFBUMPDBUJPOJOUIFDFOUFSPG"NTUFSEBN $PNQFUJUJWF4BMBSZ3FMPDBUJPO1BDLBHF *OUFSOBUJPOBM SFTVMUESJWFOEZOBNJDXPSLFOWJSPONFOU *OUFSFTUFE XXXCPPLJOHDPNKPCT FatPacker: understanding and appreciating the insanity 6 Author: Sawyer X ([email protected]) FatPacker is yet another module that contains a high dosage of trickery which most of us probably wouldn’t think of, but solves a common problem that many of us share: the need to ship a module with all of its dependencies. This talk will cover what FatPacker is, how to use it and mainly: how it does its charm. Bio Sawyer X How it works Sawyer X is a systems administrator and Perl Tracing developer, involved in various projects (most no- The major part of FatPacker is App::FatPacker:: tably Dancer). He taught a Perl course, worked Tracer. The tracer allows to trace all the modules on Perl/Android, lectures often, and rambles oc- being used by your application. It does that by casionally on his blog. dividing to two parts: • Setting B::minus_c Abstract The tracer sets the -c option using B (the same way that perl -c works. Since this cannot be FatPacker was written by mst and allows us to reversed once done, the tracer has to be run as create a packed file with all of its dependen- a separate process (though FatPacker takes care cies. We can then send that file to wherever we of that). want, and as long as it has a Perl interpreter, it will work and will not require any prerequisite This option is set in order to prevent running the installations. script’s code. You might recognize that cpanminus provides a • Catching the loaded modules packed version under the domain http://www. Since the -c option is used, no code can actually cpanmin.us/ which enables a user to run cpan- run now. Or... is that so? There are still some blocks minus straight from the command line without that can run. One of them is the CHECK block, installing it via: which is pertinent to this operation, since it is used to catch the transition after compilation curl -kL cpanmin.us | perl - My::Module but before execution. This means that the CHECK block can run after you had already ran all the You can also download it and use it: use statements, which are compile-time state- ments. curl -kL cpanmin.us > cpanm perl cpanm My::Module Then we can see what’s in your @INC. Unlike many other attempts to find used mod- How to use ules, FatPacker’s tracer goes to the source: what perl actually loads. This gives it very ac- To use FatPacker from the command line, sim- curate results (excluding require statements), ply execute the following commands, replacing and alongside the ability to add additional myscript.pl with a script file you had written: modules (such as those you intend to require), it is a powerful tool indeed. fatpack trace myscript.pl fatpack packlists-for Fetching packlists ‘cat fatpacker.trace’ >packlists Once we have traced all the modules being used, fatpack tree `cat packlists` we use FatPacker to fetch the packlists. Those (fatpack file; cat myscript.pl) contain all the modules that were installed by the >myscript.packed.pl distribution that carried whatever module we’ve found in the trace. If we have a script that uses the wonderful Data::Printer, the trace will find File/HomeDir/FreeDesktop.pm is a module that is being used (in that form) and the packlist for it will contain all the modules that come with the 7 File::HomeDir distribution, which carries File:: Creating the packed tree HomeDir::FreeDesktop. Finally we can use fatpack file in order to create a single fi le made up of all the distributions we’ve Creating the tree collected. We then concatenate our script to the Once we have the packlist fi le locations saved, we output as well and throw it all in a nice bow and can use fatpack tree to create a fatlib direc- there it is: a completely self-contained Perl script tory which will contain the entire File::HomeDir (sans the perl interpreter). distribution. We could also include our own stuff in a lib di- Caveat rectory. FatPacker can only pack Pure-Perl modules, not XS. Vorbild::Beitrag::POD 8 Author: Chris ‘BinGOs’ Williams ([email protected]) This article is written in “dual language free style”, sometimes additional subsections, sometimes just additional english paragraphs, sometimes obvious examples are not translated. Please report any language problems, you could imagine. Bio Chris ‘BinGOs’ Bibliography Williams Chris is a systems administrator who • Strawberry Perl: http://strawberryperl.com is happy to deal with any operating system. He • ActiveState: http://www.activestate.com/perl has administrated OS/2, UNIX and Windows • Cygwin: http://www.cygwin.com networks in his time and mainly deals with Win- • mintty: http://code.google.com/p/mintty/ dows and FreeBSD systems these days. • UWIN: UWIN Overview - http://www2.re- search.att.com/~gsf/download/uwin/uwin.html In his spare time he fi nds time o be a CPAN • SFU/SUA and SUA Community: Services for Tester, a Perl5 porter and POEvangelist. UNIX: http://en.wikipedia.org/wiki/Windows_ Services_for_UNIX • SUA Community: http://www.suacommunity. Abstract com/SUA.aspx • Active Directory Service Interfaces: http:// Perl. Windows. The two are often seen as in- msdn.microsoft.com/en-us/library/windows/ compatible. But they are not. desktop/aa772170%28v=vs.85%29.aspx For the past thirteen years or so I have been valiantly using Perl in a Windows environment to do useful stuff, from text mangling to Active Directory mangling. Starting with ActivePerl from ActiveState, ex- periments with UWIN and Interix (now Services for Unix), dabbling with Cygwin, onto building my JETZT own Perls, taking up Strawberry Perl and ulti- GRATIS mately back to using Cygwin for day to day work. VORBESTELLEN: The Cygwin choice being more about improve- IHRE NEUE DOMAIN- ments in Cygwin than limitations of ‘native’ ENDUNG IM WEB! Perl on Windows, things such as mintty and the new ability to use the screen utility, and being able to work in a familiar and produc- tive command line environment, with Straw- berry Perl being the choice for deployment for elsewhere in the server environment. Active Directory manipulation using ADSI (Active Directory Service Interfaces) is one of the main uses I make of Perl, regular bulk updates to thou- sands of users when departmental reorganisa- tions occur, generating management reports, to bulk importing thumbnail photo images. In Kürze verfügbar – Web-Adressen mit neuen Endungen! Perl is the glue that mends the broken glass. Das Web wird vielfältiger: Neben den bekannten Endungen wie .de und .com gibt es ab 2013 zahlreiche neue Adressendungen – z.B. .bayern, .shop, .news, .sport, .berlin, .koeln, .earth und viele mehr. Jetzt die Gelegenheit nutzen und Ihre neue Adresse fürs Web vorbestellen – kostenlos und unverbindlich! www.united-domains.de Die besten Adressen fürs Web. DINA5.indd 1 08.08.12 13:37 CGI.pm MUST DIE - Together we shall annihilate CGI.pm! 9 Author: Sawyer X ([email protected]) Bio Sawyer X The purpose of this talk is to ruthlessly and savage- ly attack CGI.pm in the hopes that it will make you Sawyer X is a systems administrator and Perl de- interested at seeing better ways of accomplishing veloper, involved in various projects (most nota- your web programming requirements.
Recommended publications
  • Langages De Script : Les Alternatives Aujourd'hui 1/85 Langages De Script
    LANGAGES DE SCRIPT LES ALTERNATIVES AUJOURD'HUI Jacquelin Charbonnel Journées Mathrice – Dijon – Mars 2011 Version 1.1 Jacquelin Charbonnel – Journées Mathrice, Dijon, mars 2011 Langages de script : les alternatives aujourd'hui 1/85 Langages de script #!/bin/bash ● à l'origine – langage de macro-commandes mkdir /users/alfred usermod -d /users/alfred alfred – huile inter application passwd alfred groupadd theproject usermod -G theproject alfred Jacquelin Charbonnel – Journées Mathrice, Dijon, mars 2011 Langages de script : les alternatives aujourd'hui 2/85 Langages de script #!/bin/bash ● à l'origine login=$1 – langage de macro-commandes group=$2 – huile inter application mkdir /users/$login ● + variables + arguments usermod -d /users/$login $login passwd $login groupadd $group usermod -G $group $login Jacquelin Charbonnel – Journées Mathrice, Dijon, mars 2011 Langages de script : les alternatives aujourd'hui 3/85 Langages de script ● à l'origine – langage de macro-commandes – huile inter application ● + variables + arguments ● + des commandes internes read r Jacquelin Charbonnel – Journées Mathrice, Dijon, mars 2011 Langages de script : les alternatives aujourd'hui 4/85 Langages de script ● à l'origine – langage de macro-commandes – huile inter application ● + variables + arguments ● + des commandes internes ● + des conditions if ! echo "$r"|grep '^[yYoO]' ; then echo "aborted !" ; exit 1 ; fi Jacquelin Charbonnel – Journées Mathrice, Dijon, mars 2011 Langages de script : les alternatives aujourd'hui 5/85 Langages de script ● à l'origine
    [Show full text]
  • [PDF] Beginning Raku
    Beginning Raku Arne Sommer Version 1.00, 22.12.2019 Table of Contents Introduction. 1 The Little Print . 1 Reading Tips . 2 Content . 3 1. About Raku. 5 1.1. Rakudo. 5 1.2. Running Raku in the browser . 6 1.3. REPL. 6 1.4. One Liners . 8 1.5. Running Programs . 9 1.6. Error messages . 9 1.7. use v6. 10 1.8. Documentation . 10 1.9. More Information. 13 1.10. Speed . 13 2. Variables, Operators, Values and Procedures. 15 2.1. Output with say and print . 15 2.2. Variables . 15 2.3. Comments. 17 2.4. Non-destructive operators . 18 2.5. Numerical Operators . 19 2.6. Operator Precedence . 20 2.7. Values . 22 2.8. Variable Names . 24 2.9. constant. 26 2.10. Sigilless variables . 26 2.11. True and False. 27 2.12. // . 29 3. The Type System. 31 3.1. Strong Typing . 31 3.2. ^mro (Method Resolution Order) . 33 3.3. Everything is an Object . 34 3.4. Special Values . 36 3.5. :D (Defined Adverb) . 38 3.6. Type Conversion . 39 3.7. Comparison Operators . 42 4. Control Flow . 47 4.1. Blocks. 47 4.2. Ranges (A Short Introduction). 47 4.3. loop . 48 4.4. for . 49 4.5. Infinite Loops. 53 4.6. while . 53 4.7. until . 54 4.8. repeat while . 55 4.9. repeat until. 55 4.10. Loop Summary . 56 4.11. if . ..
    [Show full text]
  • Web Development and Perl 6 Talk
    Click to add Title 1 “Even though I am in the thralls of Perl 6, I still do all my web development in Perl 5 because the ecology of modules is so mature.” http://blogs.perl.org/users/ken_youens-clark/2016/10/web-development-with-perl-5.html Web development and Perl 6 Bailador BreakDancer Crust Web Web::App::Ballet Web::App::MVC Web::RF Bailador Nov 2016 BreakDancer Mar 2014 Crust Jan 2016 Web May 2016 Web::App::Ballet Jun 2015 Web::App::MVC Mar 2013 Web::RF Nov 2015 “Even though I am in the thralls of Perl 6, I still do all my web development in Perl 5 because the ecology of modules is so mature.” http://blogs.perl.org/users/ken_youens-clark/2016/10/web-development-with-perl-5.html Crust Web Bailador to the rescue Bailador config my %settings; multi sub setting(Str $name) { %settings{$name} } multi sub setting(Pair $pair) { %settings{$pair.key} = $pair.value } setting 'database' => $*TMPDIR.child('dancr.db'); # webscale authentication method setting 'username' => 'admin'; setting 'password' => 'password'; setting 'layout' => 'main'; Bailador DB sub connect_db() { my $dbh = DBIish.connect( 'SQLite', :database(setting('database').Str) ); return $dbh; } sub init_db() { my $db = connect_db; my $schema = slurp 'schema.sql'; $db.do($schema); } Bailador handler get '/' => { my $db = connect_db(); my $sth = $db.prepare( 'select id, title, text from entries order by id desc' ); $sth.execute; layout template 'show_entries.tt', { msg => get_flash(), add_entry_url => uri_for('/add'), entries => $sth.allrows(:array-of-hash) .map({$_<id> => $_}).hash,
    [Show full text]
  • Other Topics 1 Other Topics
    Other topics 1 Other topics 1 Other topics 15 Feb 2014 1 1.1 Description 1.1 Description Where to learn more about other topics that are useful for mod_perl developers and users. 1.2 Perl The Perl Documentation http://perldoc.perl.org/ The Perl Home Page http://www.perl.com/ The Perl Monks http://www.perlmonks.org/ What Perl Monks is: Our attempt to make learning Perl as nonintimidating and easy to use as possi- ble. A place for you and others to polish, improve, and showcase your Perl skills. A community which allows everyone to grow and learn from each other. The Perl Journal http://www.tpj.com/ The Perl Review http://theperlreview.com/ The Perl Review is a magazine for the Perl community by the Perl community produced with open source tools. CPAN - Comprehensive Perl Archive Network http://cpan.org and http://search.cpan.org/ Perl Module Mechanics http://world.std.com/~swmcd/steven/perl/module_mechanics.html - This page describes the mechan- ics of creating, compiling, releasing and maintaining Perl modules. Creating (and Maintaining) Perl Modules http://www.mathforum.com/~ken/perl_modules.html XS tutorials 2 15 Feb 2014 Other topics 1.3 Perl/CGI Perl manpages: perlguts, perlxs, and perlxstut manpages. Dean Roehrich’s XS CookBookA and CookBookB http://search.cpan.org/search?dist=CookBookA http://search.cpan.org/search?dist=CookBookB a series of articles by Steven McDougall: http://world.std.com/~swmcd/steven/perl/pm/xs/intro/index.html http://world.std.com/~swmcd/steven/perl/pm/xs/concepts.html http://world.std.com/~swmcd/steven/perl/pm/xs/tools/index.html http://world.std.com/~swmcd/steven/perl/pm/xs/modules/modules.html http://world.std.com/~swmcd/steven/perl/pm/xs/nw/NW.html Advanced Perl Programming By Sriram Srinivasan.
    [Show full text]
  • An Introduction to Raku
    Perl6 An Introduction Perl6 Raku An Introduction The nuts and bolts ● Spec tests ○ Complete test suite for the language. ○ Anything that passes the suite is Raku. The nuts and bolts ● Spec tests ○ Complete test suite for the language. ○ Anything that passes the suite is Raku. ● Rakudo ○ Compiler, compiles Raku to be run on a number of target VM’s (92% written in Raku) The nuts and bolts ● Spec tests ○ Complete test suite for the language. ○ Anything that passes the suite is Raku. ● Rakudo ○ Compiler, compiles Raku to be run on a number of target VM’s (92% written in Raku) ● MoarVM ○ Short for "Metamodel On A Runtime" ○ Threaded, garbage collected VM optimised for Raku The nuts and bolts ● Spec tests ○ Complete test suite for the language. ○ Anything that passes the suite is Raku. ● Rakudo ○ Compiler, compiles Raku to be run on a number of target VM’s (92% written in Raku) ● MoarVM ○ Short for "Metamodel On A Runtime" ○ Threaded, garbage collected VM optimised for Raku ● JVM ○ The Java Virtual machine. The nuts and bolts ● Spec tests ○ Complete test suite for the language. ○ Anything that passes the suite is Raku. ● Rakudo ○ Compiler, compiles Raku to be run on a number of target VM’s (92% written in Raku) ● MoarVM ○ Short for "Metamodel On A Runtime" ○ Threaded, garbage collected VM optimised for Raku ● JVM ○ The Java Virtual machine. ● Rakudo JS (Experimental) ○ Compiles your Raku to a Javascript file that can run in a browser Multiple Programming Paradigms What’s your poison? Multiple Programming Paradigms What’s your poison? ● Functional
    [Show full text]
  • EN-Google Hacks.Pdf
    Table of Contents Credits Foreword Preface Chapter 1. Searching Google 1. Setting Preferences 2. Language Tools 3. Anatomy of a Search Result 4. Specialized Vocabularies: Slang and Terminology 5. Getting Around the 10 Word Limit 6. Word Order Matters 7. Repetition Matters 8. Mixing Syntaxes 9. Hacking Google URLs 10. Hacking Google Search Forms 11. Date-Range Searching 12. Understanding and Using Julian Dates 13. Using Full-Word Wildcards 14. inurl: Versus site: 15. Checking Spelling 16. Consulting the Dictionary 17. Consulting the Phonebook 18. Tracking Stocks 19. Google Interface for Translators 20. Searching Article Archives 21. Finding Directories of Information 22. Finding Technical Definitions 23. Finding Weblog Commentary 24. The Google Toolbar 25. The Mozilla Google Toolbar 26. The Quick Search Toolbar 27. GAPIS 28. Googling with Bookmarklets Chapter 2. Google Special Services and Collections 29. Google Directory 30. Google Groups 31. Google Images 32. Google News 33. Google Catalogs 34. Froogle 35. Google Labs Chapter 3. Third-Party Google Services 36. XooMLe: The Google API in Plain Old XML 37. Google by Email 38. Simplifying Google Groups URLs 39. What Does Google Think Of... 40. GooglePeople Chapter 4. Non-API Google Applications 41. Don't Try This at Home 42. Building a Custom Date-Range Search Form 43. Building Google Directory URLs 44. Scraping Google Results 45. Scraping Google AdWords 46. Scraping Google Groups 47. Scraping Google News 48. Scraping Google Catalogs 49. Scraping the Google Phonebook Chapter 5. Introducing the Google Web API 50. Programming the Google Web API with Perl 51. Looping Around the 10-Result Limit 52.
    [Show full text]
  • Name Description
    Perl version 5.10.0 documentation - perlnewmod NAME perlnewmod - preparing a new module for distribution DESCRIPTION This document gives you some suggestions about how to go about writingPerl modules, preparing them for distribution, and making them availablevia CPAN. One of the things that makes Perl really powerful is the fact that Perlhackers tend to want to share the solutions to problems they've faced,so you and I don't have to battle with the same problem again. The main way they do this is by abstracting the solution into a Perlmodule. If you don't know what one of these is, the rest of thisdocument isn't going to be much use to you. You're also missing out onan awful lot of useful code; consider having a look at perlmod, perlmodlib and perlmodinstall before coming back here. When you've found that there isn't a module available for what you'retrying to do, and you've had to write the code yourself, considerpackaging up the solution into a module and uploading it to CPAN so thatothers can benefit. Warning We're going to primarily concentrate on Perl-only modules here, ratherthan XS modules. XS modules serve a rather different purpose, andyou should consider different things before distributing them - thepopularity of the library you are gluing, the portability to otheroperating systems, and so on. However, the notes on preparing the Perlside of the module and packaging and distributing it will apply equallywell to an XS module as a pure-Perl one. What should I make into a module? You should make a module out of any code that you think is going to beuseful to others.
    [Show full text]
  • How the Camel Is De-Cocooning (YAPCNA)
    How the Camel! is de-cocooning Elizabeth Mattijsen! YAPC::NA, 23 June 2014 The Inspiration coccoon? Perl 5 Recap: 2000 - 2010 • 2000 - Perl 5.6 • 2002 - Perl 5.8 • 2007 - Perl 5.10 • 2010 - Perl 5.12 + yearly release • The lean years have passed! Perl 6 Recap: 2000 - 2010 • Camel Herders Meeting / Request for Comments • Apocalypses, Exegeses, Synopses • Parrot as a VM for everybody • Pugs (on Haskell) / Perl 6 test-suite • Rakudo (on Parrot) / Niecza (on mono/.NET) • Nothing “Production Ready” The 0’s - Cocooning Years • Perl was busy with itself • Redefining itself • Re-inventing itself • What is Perl ? • These years have passed! Not your normal de-cocooning Perl 5 and Perl 6 will co-exist for a long time to come! Perl 5 in the 10’s • A new release every year! • Many optimisations,5.20 internalis codeout! cleanup! ! • Perl 6-like features: say, state, given/when, ~~, //, …, packageGo {}, lexical getsubs, sub signaturesit! • Perl 6-like Modules: Moose / Moo / Mouse, Method::Signatures,and Promisesuse it! • and a Monthly development release Perl 6 in the 10’s • Niecza more feature-complete, initially • Not Quite Perl (NQP) developed and stand-alone • 6model on NQP with multiple backends • MoarVM - a Virtual Machine for Perl 6 • Rakudo runs on Parrot, JVM, MoarVM • also a Monthly development release Co-existence? Yes! But Perl 6 will become larger and be more future proof! Cool Perl 6 features in Perl 5 • say • yada yada yada (…) • state variables • defined-or (//)! • lexical subs • subroutine signatures • OK as long as it doesn’t involve types print "Foo\n"; Foo ! say "Foo"; Foo print "Foo\n"; !Foo say "Foo"; Foo print "Foo\n"; Foo ! say "Foo"; Foo print "Foo\n"; Foo ! say "Foo"; Foo sub a { ..
    [Show full text]
  • End-To-End Perl Solutions
    END-TO-END PERL SOLUTIONS: ACTIVEPERL AND KOMODO IDE FOR PERL MILLIONS OF DEVELOPERS TRUST PERL FOR COMPUTATIONAL AND INTEGRATION TASKS— SYSTEM ADMINISTRATION, SCRIPTING, RUNNING DATABASE APPLICATIONS, AND MORE As an open source programming language, Perl immedi- FAIL-SAFE ACTIVEPERL FOR BUSINESS AND ately reduces up-front project costs. However, Perl alone MISSION-CRITICAL APPLICATIONS may not help you meet your business goals. With ActiveState commercial-grade technical support and consulting you don’t need to depend on overworked Like most open source projects, Perl isn’t quality assured internal resources or public Perl communities to solve or commercially supported. So, it may not be safe for development issue. business or mission-critical applications that must run effectively daily, weekly, even hourly. Don’t let Perl be a ActivePerl Enterprise Edition is designed for busi- point of failure for your internal systems and cost your nesses with large Perl deployments in essential, mission- business in lost revenue. Or worse, don’t let it compro- critical applications that, when down, could cost your mise relationships with your customers. CA, Siemens and business in lost revenue and a damaged reputation. Boeing are just a few Fortune 1000 companies that trust Deploy Perl with confidence knowing you’re using the ActiveState for end-to-end development, management most secure, enterprise-grade builds for platforms like and distribution solutions for fail-safe Perl. WORLD’S BEST PERL DISTRIBUTION “ActiveState’s trusted version of Perl has allowed us ActivePerl is the industry-standard, commercial-grade to continuously raise the bar on quality as well as Perl distribution used by millions of developers around cut the cost of expanding our product matrix.” the world for easy Perl installation and quality-assured Lawrence Backman, VP at CA code.
    [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]
  • 7 Reasons the Future of Tcl Is Bright by Clif Flynt ([email protected]) 7 Reasons the Future of Tcl Is Bright
    7 REASONS THE FUTURE OF TCL IS BRIGHT BY CLIF FLYNT ([email protected]) 7 REASONS THE FUTURE OF TCL IS BRIGHT The future is bright for Tcl! You’d be pardoned for his repertoire. He started shell programming in 1985, thinking otherwise. It’s not a sexy new language. In fact, picked up Perl in 1995 and finally Tcl in 1996. He’s been a it’s ranked outside the Top 50 in the TIOBE Index1. Tcl devotee ever since. But for the right projects - and there are lots of them - it’s With Clif’s extensive background, we asked him about a powerful tool that’s been stress-tested for many years the future of Tcl. Here’s seven reasons why the future and just gets the job done. of Tcl is bright. Tcl is not resting on its laurels. The simplicity of the Tcl language makes it perfect for Internet of Things IoT and 1: TCL IS STILL THE KING OF electronics design, including Electronic Design Automa- RAPID PROTOTYPING tion (EDA), chip design, and Field-Programmable Gate Clif is a big fan of Tcl for rapid prototypes that actually Array (FPGA) development, and for configuring chips after work. NBC Broadcasting studios uses Tcl/Tk to control manufacture. The same features that make Tcl dominant what you see. They went to GE Research (and others) in EDA and FPGA also make it great for DevOps, poten- with a half-baked design and some examples of the tially competing with Bash and Perl as the language of clipboards and tapes they were using.
    [Show full text]
  • Install Perl Modules
    How to install OTRS (Open Source Trouble Ticket System) on Ubuntu 16.04 Prerequisites Ubuntu 16.04. Min 2GB of Memory. Root privileges. Step 1 - Install Apache and PostgreSQL In this first step, we will install the Apache web server and PostgreSQL. We will use the latest versions from the Ubuntu repository. Login to your Ubuntu server with SSH: ssh [email protected] Update Ubuntu repository. sudo apt-get update Install Apache2 and a PostgreSQL with the apt: sudo apt-get install -y apache2 libapache2-mod-perl2 postgresql Then make sure that Apache and PostgreSQL are running by checking the server port. netstat -plntu You will see port 80 is used by apache, and port 5432 used by PostgreSQL database. Step 2 - Install Perl Modules OTRS is based on Perl, so we need to install some Perl modules that are required by OTRS. Install perl modules for OTRS with this apt command: sudo apt-get install -y libapache2-mod-perl2 libdbd-pg-perl libnet-dns-perl libnet-ldap-perl libio-socket-ssl-perl libpdf-api2-perl libsoap-lite-perl libgd-text-perl libgd-graph-perl libapache- dbi-perl libarchive-zip-perl libcrypt-eksblowfish-perl libcrypt-ssleay-perl libencode-hanextra- perl libjson-xs-perl libmail-imapclient-perl libtemplate-perl libtemplate-perl libtext-csv-xs-perl libxml-libxml-perl libxml-libxslt-perl libpdf-api2-simple-perl libyaml-libyaml-perl When the installation is finished, we need to activate the Perl module for apache, then restart the apache service. a2enmod perl systemctl restart apache2 Next, check the apache module is loaded with the command below: apachectl -M | sort And you will see perl_module under 'Loaded Modules' section.
    [Show full text]