Other Topics 1 Other Topics

Total Page:16

File Type:pdf, Size:1020Kb

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. Published by O’Reilly & Associates. ISBN: 1-56592-220-4. Chapters 18-20. http://www.oreilly.com/catalog/advperl/ perl-xs mailing list on perl.org (mail [email protected]) Take a look also at Inline.pm (CPAN) and SWIG (http://www.swig.org/) Perl mailing lists A huge number of diverse Perl mailing lists is listed at http://lists.perl.org/. perl5-porters mailing list Send an email: to [email protected] to subscribe to this list. to [email protected] to unsubscribe to this list. to [email protected] if you prefer a digest version. to [email protected] to unsubscribe from the digest. to [email protected] for more information about the subscription options. List’s archive is available at http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/. 1.3 Perl/CGI Perl/CGI FAQ at http://www.perl.com/CPAN/doc/FAQs/cgi/perl-cgi-faq.html Answers to some troublesome Perl and Perl/CGI questions 15 Feb 2014 3 1.4 Apache http://stason.org/TULARC/webmaster/myfaq.html Idiot’s Guide to CGI programming http://www.webdeveloper.com/cgi-perl/cgi_idiots_guide_to_perl.html WWW Security FAQ http://www.w3.org/Security/Faq/www-security-faq.html CGI/Perl Taint Mode FAQ http://www.gunther.web66.com/FAQS/taintmode.html (by Gunther Birznieks) cgi-list mailing list Send email to [email protected] with body: subscribe cgi-list 1.4 Apache Apache Project’s Home http://www.apache.org Apache Mailing Lists You will find a comprehensive list of all Apache projects’ mailing lists at: http://www.apache.org/foundation/mailinglists.html. httpd specific lists: http://httpd.apache.org/lists.html. the Apache Modeling Portal http://apache.hpi.uni-potsdam.de/ - An introduction to the Apache HTTP Server, covering both an overview and implementation details. It presents results of the Apache Modelling Project done by research assistants and students of the Hasso-Plattner-Institute in 2001 and 2002. Apache Quick Reference Card http://www.refcards.com (other reference cards are also available from this link) The Apache FAQ http://www.apache.org/docs/misc/FAQ.html Apache Server Documentation 4 15 Feb 2014 Other topics 1.5 DBI and SQL http://www.apache.org/docs/ Apache Handlers http://www.apache.org/docs/handler.html mod_rewrite Guide http://www.engelschall.com/pw/apache/rewriteguide/ Security: Security and Apache: An Essential Primer http://linuxplanet.com/linuxplanet/print/1527/ Using Apache with Suexec on Linux http://linuxplanet.com/linuxplanet/print/1445/ How to ’chroot’ an Apache tree with Linux and Solaris http://penguin.epfl.ch/chroot.html http://www.etc.msys.ch/docs/chrooted_httpd.pdf talks about selected aspects of running a chrooted HTTP daemon and present strategies on how to set up a chrooted environment for more complex applications like database access or using CGI-scripts. Installing and Securing the Apache Webserver with SSL http://online.securityfocus.com/infocus/1356 How to break out of a chroot() jail: http://www.bpfh.net/simes/computing/chroot-break.html Jails: Confining the omnipotent root: http://docs.freebsd.org/44doc/papers/jail/jail.html FreeBSD Developers’ Handbook: The Jail Subsystem http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/jail.html 1.5 DBI and SQL Introduction to Structured Query Language: http://www.dbbm.fiocruz.br/class/Lecture/d17/sql/jhoffman/sqltut.html SQL for Web Nerds by Philip Greenspun http://philip.greenspun.com/sql Jeffrey Baker’s DBI Examples and Performance Tuning http://www.saturn5.com/~jwb/dbi-examples.html (by Jeffrey William Baker). DBI Homepage http://dbi.perl.org/ 15 Feb 2014 5 1.6 Squid - Internet Object Cache DBI mailing list archives http://www.mail-archive.com/[email protected]/ http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&group=perl.dbi.usershttp://www.xray.mpe.mpg.de/mailing-lists/dbi/ 1.6 Squid - Internet Object Cache Home page http://www.squid-cache.org/ FAQ http://www.squid-cache.org/Doc/FAQ/FAQ.html Users Guide http://www.squid-cache.org/Doc/Users-Guide/ Mailing lists http://www.squid-cache.org/mailing-lists.html 1.7 SVN mod_perl SVN repository specific information document. 1.8 Performance and Scalability Techniques and Technologies for Scaling Internet Services mailing list. The list’s address: [email protected]. Subscribe by sending a message to scal- [email protected]. Solaris 2.x - Tuning Your TCP/IP Stack and More http://www.sean.de/Solaris/tune.html This page talks about TCP/IP stack and various tricks of tuning your system to get the most out of it as a web server. While the information is for Solaris 2.x OS, most of it will be relevant of other Unix flavors. At the end an extensive list of related literature is presented. High-Availability Linux Project http://www.linux-ha.org/ 6 15 Feb 2014 Other topics 1.9 Unix OS flavors -- Unix OS related resources 1.9 Unix OS flavors -- Unix OS related resources Memory system management and architecture: The Solaris memory system, sizing, tools and architecture: http://www.sun.com/sun-on-net/perfor- mance/vmsizing.pdf 1.10 Maintainers Maintainer is the person(s) you should contact with updates, corrections and patches. Stas Bekman [http://stason.org/] 1.11 Authors Stas Bekman [http://stason.org/] Only the major authors are listed above. For contributors see the Changes file. 15 Feb 2014 7 Other topics Table of Contents: Table of Contents: 1 Other topics . 1 1.1 Description . 2 1.2 Perl . 2 1.3 Perl/CGI . 3 1.4 Apache . 4 1.5 DBI and SQL . 5 1.6 Squid - Internet Object Cache . 6 1.7 SVN . 6 1.8 Performance and Scalability . 6 1.9 Unix OS flavors -- Unix OS related resources . 7 1.10 Maintainers . 7 1.11 Authors . 7 15 Feb 2014 i.
Recommended publications
  • 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]
  • 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]
  • 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.
    [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]
  • 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]
  • Mojolicious Web Clients Brian D Foy Mojolicious Web Clients by Brian D Foy
    Mojolicious Web Clients brian d foy Mojolicious Web Clients by brian d foy Copyright 2019-2020 © brian d foy. All rights reserved. Published by Perl School. ii | Table of contents Preface vii What You Should Already Know . viii Some eBook Notes ........................... ix Installing Mojolicious ......................... x Getting Help .............................. xii Acknowledgments . xiii Perl School ............................... xiv Changes ................................. xiv 1 Introduction 1 The Mojo Philosophy .......................... 1 Be Nice to Servers ........................... 4 How HTTP Works ........................... 6 Add to the Request ........................... 15 httpbin ................................. 16 Summary ................................ 18 2 Some Perl Features 19 Perl Program Basics .......................... 19 Declaring the Version ......................... 20 Signatures ................................ 22 Postfix Dereference ........................... 25 Indented Here Docs ........................... 25 Substitution Returns the Modified Copy . 26 Summary ................................ 27 3 Basic Utilities 29 Working with URLs .......................... 30 Decoding JSON ............................. 34 Collections ............................... 45 Random Utilities ............................ 50 TABLE OF CONTENTS | iii Events .................................. 52 Summary ................................ 55 4 The Document Object Model 57 Walking Through HTML or XML ................... 57 Modifying
    [Show full text]
  • Introduction to Perl: Fifth Lecture What a Module Is Where We Can find Many Useful Modules How We Use Them in Our Own Programs Duncan C
    Contents In this session, we'll discuss using add-on modules to make Perl even more powerful. We'll cover: Perl's documentation system Introduction to Perl: Fifth Lecture what a module is where we can find many useful modules how we use them in our own programs Duncan C. White ([email protected]) a brief detour into Perl objects and lots of examples of using some common modules. Dept of Computing, Imperial College London Aside: Hashes as Records But first: we've already said that you can omit the quotes on a January 2014 literal hash key string, this is often used to pretend that a hash is a record/structure, as in: $info{forename} = 'Duncan'; where forename is a string, pretending to be a field name. Duncan White (CSG) Introduction to Perl: Fifth Lecture January 2014 1 / 24 Duncan White (CSG) Introduction to Perl: Fifth Lecture January 2014 2 / 24 Perl's Documentation System Extending Perl - Add-on Modules Perl has a tremendous amount of online documentation - reference A major motivation of the Perl 5 redesign was to allow additional info, tutorials, cookbooks and FAQs. All is accessed using perldoc - C libraries to be dynamically loaded into a running Perl start by looking at the overview perldoc perl. You can also lookup interpreter. This feature is used to add major new functionality documentation for: to Perl without having to recompile the Perl interpreter. Any standard function: perldoc -f functionname. Perl modules can either be pure Perl { literally just containing Any installed module: perldoc modulename. Perl code { or XS { containing code in C as well as Perl, to (for instance) provide an interface to an existing C library (like Tk).
    [Show full text]
  • Perl Cookbook
    ;-_=_Scrolldown to the Underground_=_-; Perl Cookbook http://kickme.to/tiger/ By Tom Christiansen & Nathan Torkington; ISBN 1-56592-243-3, 794 pages. First Edition, August 1998. (See the catalog page for this book.) Search the text of Perl Cookbook. Index Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z Table of Contents Foreword Preface Chapter 1: Strings Chapter 2: Numbers Chapter 3: Dates and Times Chapter 4: Arrays Chapter 5: Hashes Chapter 6: Pattern Matching Chapter 7: File Access Chapter 8: File Contents Chapter 9: Directories Chapter 10: Subroutines Chapter 11: References and Records Chapter 12: Packages, Libraries, and Modules Chapter 13: Classes, Objects, and Ties Chapter 14: Database Access Chapter 15: User Interfaces Chapter 16: Process Management and Communication Chapter 17: Sockets Chapter 18: Internet Services Chapter 19: CGI Programming Chapter 20: Web Automation The Perl CD Bookshelf Navigation Copyright © 1999 O'Reilly & Associates. All Rights Reserved. Foreword Next: Preface Foreword They say that it's easy to get trapped by a metaphor. But some metaphors are so magnificent that you don't 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 one - I feel a bit like Betty Crocker's 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.
    [Show full text]
  • Statistics for Brynosaurus.Com (2004)
    Statistics for brynosaurus.com (2004) Statistics for: brynosaurus.com Last Update: 26 Sep 2006 − 03:56 Reported period: Year 2004 When: Monthly history Days of month Days of week Hours Who: Countries Full list Hosts Full list Last visit Unresolved IP Address Robots/Spiders visitors Full list Last visit Navigation: Visits duration File type Viewed Full list Entry Exit Operating Systems Versions Unknown Browsers Versions Unknown Referers: Origin Refering search engines Refering sites Search Search Keyphrases Search Keywords Others: Miscellaneous HTTP Status codes Pages not found Summary Reported period Year 2004 First visit 01 Jan 2004 − 00:04 Last visit 31 Dec 2004 − 23:57 Unique visitors Number of visits Pages Hits Bandwidth <= 40525 47088 85260 726872 20.63 GB Viewed traffic * Exact value not available in (1.16 visits/visitor) (1.81 pages/visit) (15.43 hits/visit) (459.33 KB/visit) 'Year' view Not viewed traffic * 56661 78092 1.91 GB * Not viewed traffic includes traffic generated by robots, worms, or replies with special HTTP status codes. Monthly history Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 2004 2004 2004 2004 2004 2004 2004 2004 2004 2004 2004 2004 Month Unique visitors Number of visits Pages Hits Bandwidth Jan 2004 3254 3542 5336 34926 1.06 GB Feb 2004 3721 4080 7997 68946 1.83 GB Mar 2004 5103 5842 9661 116080 2.89 GB Apr 2004 3761 4306 7697 69176 1.86 GB May 2004 3796 4415 7466 71072 1.96 GB Jun 2004 2664 3143 6283 49758 1.40 GB Jul 2004 2470 2908 5066 40287 1.18 GB Aug 2004 2279 2836 5394 40026 1.14 GB Sep 2004 2955
    [Show full text]
  • Strawberry Perl Manually Install Cpan Module
    Strawberry perl manually install cpan module Continue Strawberry Perl is a community-driven Open Source project, meaning that most people directly involved have jobs, families and/or other commitments beyond just strawberries. To maintain a sustainable long-term production distribution, we like to keep everything as simple and community driven as possible, so that our smart users can help each other and all the official features just work. So, a gentle reminder, you are among the friends here. And we'll do everything we can to help. But please be civil and understand some problems just haven't been solved yet, or haven't been included in strawberries, because current solutions just aren't reliable or sustainable enough yet, which is our top priority. And, of course, more assistants are always welcome :) Are you new to Pearl? learn.perl.org - Good starting point for Perl beginners Learn Perl in about 2 hours 30 minutes Modern Book Perl Do you have questions? #perl-help on irc.perl.org - Chat Live and get help from other developers perl #win32 on irc.perl.org - Chat Live if your windows-specific problem and get help from other Windows perl developers (you may need to wait until someone wakes up) Perl Monks or Stack overflow - often better quality answers than IRC for questions that aren't strawberry-specific. Mailing list - Great for offering new features, and offering to help write them, and developer stuff etc. Error reports If you have problems with packing strawberries, or anything broke out box, please file an error report (with as much details as possible) on our Tracker request, where you can also find already reported problems.
    [Show full text]
  • Perl Programming Fast
    Perl Programming Perl Programming Fast Presented by: Fred Mallett [email protected] FAME Computer Education 250 Beach Blvd Laguna Vista, TX 78578 956-943-4040 Perl Programming Seminar Outline Perl Syntax Common constructions A look at some programs from the web (or elsewhere) Perl Programming What is(n’t) Perl like? Perl is like UNIX Shell scripting text file read at execution time (Command interpretive language) Can be easily read (can be impossible to read) Comments from a ” # ” to end of line Command line capabilities #!/bin/ksh print ” hello world ”; exit #!/usr/local/bin/perl print ” hello world \n” ; exit; Perl is not like UNIX Shell scripting Program is read completely and compiled at execution time Programs are written in blocks foreach (<STDIN>) { print ”$_ is readable\n ” if -r; } Perl is like awk Anything you can do in awk, you can do in Perl There is an a2p utility Perl is not like awk syntax has many differences (NR is $.) Perl has many more capabilities: file, dir, process, network There are no string limits Perl Programming What is(n’t) Perl like? Perl is like C Coding Free-format language, whitespace mostly arbitrary (blanks, tabs, newlines, returns, and formfeeds) Nearly all statements must be terminated by a ”;” if ($x == $y) { print ” values are equal\n” ; } else { for ($i=1;$i<=5;$i+=2) { $x *= $i; print ”values are: $i $x\n ” ; } } Perl is not like C Coding No Main routine required (it is implied) No compile necessary No libraries or include files required No platform dependent binaries Many “ syntactical shortcuts” open(WORDS, ”$ENV{’list’}” ); if (-M WORDS < 7) { while (<WORDS>) { chomp; print; } } Perl Programming Perl program invocation methods: As a perl script (on UNIX boxes): Put #!/usr/local/bin/perl as the first characters of script Make the file executable Execute as a command (located via search path): filename As a perl script (on Win32 boxes): 1) Use associated file types, then execute as a command: filename.pl If you also set pathext to include .pl, you could run the file with just filename.
    [Show full text]
  • An Unsupervised Heterogeneous Log-Based Framework for Anomaly Detection
    Turkish Journal of Electrical Engineering & Computer Sciences Turk J Elec Eng & Comp Sci (2016) 24: 1117 { 1134 http://journals.tubitak.gov.tr/elektrik/ ⃝c TUB¨ ITAK_ Research Article doi:10.3906/elk-1302-19 An unsupervised heterogeneous log-based framework for anomaly detection Asif Iqbal HAJAMYDEEN∗, Nur Izura UDZIR, Ramlan MAHMOD, Abdul Azim ABDUL GHANI Faculty of Computer Science and Information Technology, Universiti Putra Malaysia, Serdang, Selangor Darul Ehsan, Malaysia Received: 03.02.2013 • Accepted/Published Online: 14.02.2014 • Final Version: 23.03.2016 Abstract: Log analysis is a method to identify intrusions at the host or network level by scrutinizing the log events recorded by the operating systems, applications, and devices. Most work contemplates a single type of log for analysis, leading to an unclear picture of the situation and difficulty in deciding the existence of an intrusion. Moreover, most existing detection methods are knowledge-dependent, i.e. using either the characteristics of an anomaly or the baseline of normal traffic behavior, which limits the detection process to only anomalies based on the acquired knowledge. To discover a wide range of anomalies by scrutinizing various logs, this paper presents a new unsupervised framework, UHAD, which uses a two-step strategy to cluster the log events and then uses a filtering threshold to reduce the volume of events for analysis. The events from heterogeneous logs are assembled together into a common format and are analyzed based on their features to identify anomalies. Clustering accuracy of K-means, expectation-maximization, and farthest first were compared and the impact of clustering was captured in all the subsequent phases.
    [Show full text]