Textwrangler 3.0 User Manual

Total Page:16

File Type:pdf, Size:1020Kb

Textwrangler 3.0 User Manual User Manual TextWrangler THE Text Editor for Anyone who Types Bare Bones Software, Inc. ™ TextWrangler 3.0 Product Design Rich Siegel, Patrick Woolsey, Jim Correia, Steve Kalkwarf Product Engineering Jim Correia, Jon Hueras, Steve Kalkwarf, Rich Siegel, Steve Sisak Documentation Philip Borenstein, Stephen Chernicoff, John Gruber, Simon Jester, Jeff Mattson, Jerry Kindall, Caroline Rose, Rich Siegel, Patrick Woolsey Additional Engineering Seth Dillingham – Macrobyte Resources http://www.macrobyte.net Polaschek Computing http://www.polaschek-computing.com Icon Design Ultra Maroon Design http://www.ultramaroon.com updates by Bryan Bell http://www.bryanbell.com/ PCRE Library Package written by Philip Hazel and © 1997-2004 University of Cambridge, England TextWrangler and the TextWrangler User Manual are copyright ©2003-2009 Bare Bones Software, Inc. All rights reserved. Published and printed in USA. Bare Bones Software, Inc. P. O. Box 1048 Bedford, MA 01730–01048 (978) 251-0500 (978) 251-0525 fax http://www.barebones.com/ Sales information: [email protected] Technical support: [email protected] TextWrangler is a trademark of, and BBEdit and “It Doesn’t Suck” are registered trademarks of Bare Bones Software, Inc. Information in this document is subject to change without notice and does not represent a commitment on the part of the copyright holder. The software described in this document is furnished under a license agreement. Warranty and license information is included on the next page of this user manual. The owner or authorized user of a valid copy of TextWrangler may reproduce this publication for the purpose of learning to use such software. No part of this publication may be reproduced or transmitted for commercial purposes, such as selling copies of this publication or for providing paid-for support services. Macintosh, Mac OS X, Power Macintosh, and AppleScript are trademarks of Apple Computer, Inc. PowerPC is a trademark of International Business Machines Corp. All other trademarks are the property of their respective owners. License Agreement: You, the Licensee, assume responsibility for the selection of the program TextWrangler to achieve your intended results, and for the installation, use, and results obtained from the program. Breaking the package seal and installing the program constitutes your acceptance of these terms and conditions. If you do not accept these terms and conditions, then do not break the package seal or install the software. License: You may use the program and documentation on any desired number of machines and copy the program and documentation into any machine-readable or printed form for backup or support of your use of the program and documentation on those machines, provided that no copy of the program and documentation may be used by anyone other than you. • Your use of the program and documentation is limited solely to internal use. Without limiting the generality of the foregoing, you may not, directly or indirectly, transfer, convey, distribute, or provide the program or access to the program to any third party, whether by means of a bundling, publishing, or hosting arrangement, or otherwise and whether or not for money or other consideration, without the express prior written consent of Bare Bones Software, Inc. • You may not use or copy the program or documentation, or any copy thereof, in whole or in part, except as provided in this Agreement. • You also may not modify the program or documentation, or any copy thereof, in whole or in part. If you use, copy, modify, distribute, or transfer the program or documentation, or any copy thereof, in whole or part, except as expressly provided for in this Agreement, your license is automatically terminated. Term: The license is effective on the date you accept this Agreement, and remains in effect until terminated as indicated above or until you terminate it. If the license is terminated for any reason, you agree to destroy the program and documentation, together with all copies thereof, in whole or in part, in any form, and to cease all use of the program and documentation. Limited Warranty and Limitation of Remedies: The program, documentation and any support from Bare Bones Software, Inc., are provided “as is” and without warranty, express and implied, including but not limited to any implied warranties of merchantability and fitness for a particular purpose. In no event will Bare Bones Software, Inc. be liable for any damages, including lost profits, lost savings, or other incidental or consequential damages, even if Bare Bones Software, Inc. is advised of the possibility of such damages, or for any claim by you or any third party. General Terms: This Agreement can only be modified by a written agreement signed by you and Bare Bones Software, Inc. and changes from the terms and conditions of this Agreement made in any other manner will be of no effect. If any portion of this Agreement shall be held invalid, illegal, or unenforceable, the validity, legality, and enforceability of the remainder of the Agreement shall not in any way be affected or impaired thereby. This Agreement shall be governed by the laws of The Commonwealth of Massachusetts, without giving effect to conflict of laws provisions thereof. As required by United States export regulations, you shall not permit export of the program or any direct products thereof to any country to which export is then controlled by the United States Bureau of Export Administration, unless you have that agency's prior written approval. Use of the program and documentation by military and civilian offices, branches or agencies of the U.S. Government is restricted in accordance with the applicable Federal Acquisition Regulations (under which the program and documentation constitute "restricted computer software" that is "commercial computer software") or Department of Defense Federal Acquisition Regulations Supplement (under which the program and documentation constitute "commercial computer software" and "commercial computer software documentation") to that consistent with only those rights as are granted pursuant to the terms and conditions hereof. Acknowledgment: You acknowledge that you have read this agreement, understand it, and agree to be bound by its terms and conditions. You further agree that it is the complete and exclusive statement of the agreement between you and Bare Bones Software, Inc. which supersedes all proposals or prior agreements, oral or written, and all other communications between you and Bare Bones Software, Inc. relating to the subject matter of this agreement. Contents Chapter 1 Welcome to TextWrangler 15 Getting Started . 15 What Is TextWrangler? . 15 How Can I Use TextWrangler? . 16 Editing Source Code – 16 Editing Text Files – 16 Human Interface Notes . 17 Dynamic Menus – 17 Bypassing Options Dialogs – 17 Keyboard Shortcuts for Commands – 17 Contextual Menus – 18 Snappy Palettes – 18 Dialog Box Key Equivalents – 18 What’s New in this Version . 20 Info on New Features – 20 TextWrangler Discussion Group . 21 Support Services . 21 How to contact us – 21 Chapter 2 Installing TextWrangler 23 Basic Installation . 23 System Requirements – 23 Installing TextWrangler – 23 Updating an Existing Copy – 24 Upgrading from a Previous Version – 24 Welcome Dialog and Registration – 24 TextWrangler’s Application Support Folders . 25 Using the Global Application Support Folder – 25 Using a Local Application Support Folder – 25 Application Support Folder Contents – 26 Language Modules – 26 Menu Scripts – 26 Plug-Ins – 26 Scripts – 27 Shutdown Items – 27 Startup Items – 27 Stationery – 27 Text Factories – 28 Unix Support – 28 Preference Files and Folders . 28 TextWrangler Preferences File – 28 TextWrangler Preferences Folder – 28 v Chapter 3 Working with Files 31 Launching TextWrangler . 31 Startup Items . 32 Creating and Saving Documents . 33 Saving a Copy of a File – 35 File Saving Options – 35 File State – 36 Long File Names – 36 Saving with Authentication – 36 Saving Compressed Files with bz2 and gzip – 37 Opening Existing Documents . 37 Choosing the Encoding for a Document – 37 Using the Open Command – 39 Opening bz2 or gzip Files and Binary plists – 40 Using the Open Hidden Command – 41 Using the Open from FTP/SFTP Server Command – 41 Using the Open Selection Command – 41 Using the Open File by Name Commands – 42 Using the Open Counterpart Command – 42 Using the Open Recent Command – 43 Using the Reopen using Encoding Command – 43 An International Text Primer . 43 International Text in TextWrangler – 43 Unicode – 44 Saving Unicode Files – 44 Opening Unicode Files – 45 Accessing FTP/SFTP Servers . 46 Opening Files from FTP/SFTP Servers – 46 Saving Files to FTP/SFTP Servers – 48 Using TextWrangler from the Command Line . 50 Using Stationery . 50 Hex Dump for Files and Documents . 51 Making Backups . 51 Printing . 52 Text Printing Options – 52 Chapter 4 Editing Text with TextWrangler 55 Basic Editing . 56 Moving Text – 56 Multiple Clipboards – 57 Drag and Drop – 58 Multiple Undo . 58 Window Anatomy . 59 The Tool Bar – 60 The Split Bar – 61 The Navigation Bar – 62 The Documents Drawer – 65 The Status Bar – 66 vi Table of Contents The View Menu . 67 Text Display – 67 Hide/Show Tool Bar – 68 Hide/Show Navigation Bar – 68 Hide/Show Documents Drawer – 68 Balance – 68 Previous Document/Next Document – 68 Open in Separate Window – 68 Get Info – 69 Reveal in Finder – 69 Open in Super Get Info – 69 Cursor Movement and Text Selection . 70 Clicking and Dragging – 70 Arrow Keys – 71 CamelCase Navigation – 72 Rectangular Selections – 72 Working with Rectangular Selections – 72 Scrolling the View – 75 The Delete Key – 75 The Numeric Keypad – 76 Go To Line Command – 77 Function Keys – 77 Resolving URLs – 78 Text Options . 78 Editing Options – 78 Display Options – 79 How TextWrangler Wraps Text . 81 Soft Wrapping – 82 Hard Wrapping – 83 The Insert Submenu . 85 Inserting File Contents – 86 Inserting File & Folder Paths – 86 Inserting a Folder Listing – 86 Inserting a Page Break – 86 Inserting Time Stamps – 86 Comparing Text Files . 87 Compare Against Disk File – 89 Multi-File Compare Options – 89 Using Markers .
Recommended publications
  • Bbedit 13.5 User Manual
    User Manual BBEdit™ Professional Code and Text Editor for the Macintosh Bare Bones Software, Inc. ™ BBEdit 13.5 Product Design Jim Correia, Rich Siegel, Steve Kalkwarf, Patrick Woolsey Product Engineering Jim Correia, Seth Dillingham, Matt Henderson, Jon Hueras, Steve Kalkwarf, Rich Siegel, Steve Sisak Engineers Emeritus Chris Borton, Tom Emerson, Pete Gontier, Jamie McCarthy, John Norstad, Jon Pugh, Mark Romano, Eric Slosser, Rob Vaterlaus Documentation Fritz Anderson, Philip Borenstein, Stephen Chernicoff, John Gruber, Jeff Mattson, Jerry Kindall, Caroline Rose, Allan Rouselle, Rich Siegel, Vicky Wong, Patrick Woolsey Additional Engineering Polaschek Computing Icon Design Bryan Bell Factory Color Schemes Luke Andrews Additional Color Schemes Toothpaste by Cat Noon, and Xcode Dark by Andrew Carter. Used by permission. Additional Icons By icons8. Used under license Additional Artwork By Jonathan Hunt PHP keyword lists Contributed by Ted Stresen-Reuter. Previous versions by Carsten Blüm Published by: Bare Bones Software, Inc. 73 Princeton Street, Suite 206 North Chelmsford, MA 01863 USA (978) 251-0500 main (978) 251-0525 fax https://www.barebones.com/ Sales & customer service: [email protected] Technical support: [email protected] BBEdit and the BBEdit User Manual are copyright ©1992-2020 Bare Bones Software, Inc. All rights reserved. Produced/published in USA. Copyrights, Licenses & Trademarks cmark ©2014 by John MacFarlane. Used under license; part of the CommonMark project LibNcFTP Used under license from and copyright © 1996-2010 Mike Gleason & NcFTP Software Exuberant ctags ©1996-2004 Darren Hiebert (source code here) PCRE2 Library Written by Philip Hazel and Zoltán Herczeg ©1997-2018 University of Cambridge, England Info-ZIP Library ©1990-2009 Info-ZIP.
    [Show full text]
  • Intermediate Perl – Session 7
    1.1.2.8 – Intermediate Perl 1.1.2.8.7 Intermediate Perl – Session 7 · POD – plain old documentation · processing command line parameters · processing configuration files 9/23/2008 1.1.2.8.7 - Intermediate Perl - POD, parameters and configuration 1 1.1.2.8 – Intermediate Perl POD – plain old documentation ·embed documentation in your scripts with POD ·POD is very simple because it stands for Plain Old Documentation · it is meant to be easy to use – and it is! · POD is a simple markup language · write documentation once and export it to multiple formats · man, html, text · POD formatting codes are embedded in your script ·Pod::Usage module displays documentation for the script when the script is executed · how handy is that? 9/23/2008 1.1.2.8.7 - Intermediate Perl - POD, parameters and configuration 2 1.1.2.8 – Intermediate Perl POD structure – sections start and end pod with =pod =pod and =cut =head1 NAME script – take over the world in one line of Perl separate paragraphs by =head1 SYNOPSIS new lines script –mode EVIL|GOOD [-debug] use =head1 and =head2 =head1 DESCRIPTION for headings You can take over the world as an EVIL doer or a GOOD doer. Pick one. =head2 EVIL indent code Evil is more fun. =head2 GOOD =over and =back to =over indent text =item * advantages =item * for bullet lists none =item * disadvantages no fun =back =cut 9/23/2008 1.1.2.8.7 - Intermediate Perl - POD, parameters and configuration 3 1.1.2.8 – Intermediate Perl POD structure – ordinary paragraphs ordinary paragraphs # contents of podexample =pod representing text that =head1 EXAMPLE you'd like wrapped and justified have no This is an ordinary paragraph that will be indented, wrapped and maybe even justified.
    [Show full text]
  • "This Book Was a Joy to Read. It Covered All Sorts of Techniques for Debugging, Including 'Defensive' Paradigms That Will Eliminate Bugs in the First Place
    Perl Debugged By Peter Scott, Ed Wright Publisher : Addison Wesley Pub Date : March 01, 2001 ISBN : 0-201-70054-9 Table of • Pages : 288 Contents "This book was a joy to read. It covered all sorts of techniques for debugging, including 'defensive' paradigms that will eliminate bugs in the first place. As coach of the USA Programming Team, I find the most difficult thing to teach is debugging. This is the first text I've even heard of that attacks the problem. It does a fine job. Please encourage these guys to write more." -Rob Kolstad Perl Debugged provides the expertise and solutions developers require for coding better, faster, and more reliably in Perl. Focusing on debugging, the most vexing aspect of programming in Perl, this example-rich reference and how-to guide minimizes development, troubleshooting, and maintenance time resulting in the creation of elegant and error-free Perl code. Designed for the novice to intermediate software developer, Perl Debugged will save the programmer time and frustration in debugging Perl programs. Based on the authors' extensive experience with the language, this book guides developers through the entire programming process, tackling the benefits, plights, and pitfalls of Perl programming. Beginning with a guided tour of the Perl documentation, the book progresses to debugging, testing, and performance issues, and also devotes a chapter to CGI programming in Perl. Throughout the book, the authors espouse defensible paradigms for improving the accuracy and performance of Perl code. In addition, Perl Debugged includes Scott and Wright's "Perls of Wisdom" which summarize key ideas from each of the chapters, and an appendix containing a comprehensive listing of Perl debugger commands.
    [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]
  • The Bioperl Toolkit: Perl Modules for the Life Sciences
    Downloaded from genome.cshlp.org on January 25, 2012 - Published by Cold Spring Harbor Laboratory Press The Bioperl Toolkit: Perl Modules for the Life Sciences Jason E. Stajich, David Block, Kris Boulez, et al. Genome Res. 2002 12: 1611-1618 Access the most recent version at doi:10.1101/gr.361602 Supplemental http://genome.cshlp.org/content/suppl/2002/10/20/12.10.1611.DC1.html Material References This article cites 14 articles, 9 of which can be accessed free at: http://genome.cshlp.org/content/12/10/1611.full.html#ref-list-1 Article cited in: http://genome.cshlp.org/content/12/10/1611.full.html#related-urls Email alerting Receive free email alerts when new articles cite this article - sign up in the box at the service top right corner of the article or click here To subscribe to Genome Research go to: http://genome.cshlp.org/subscriptions Cold Spring Harbor Laboratory Press Downloaded from genome.cshlp.org on January 25, 2012 - Published by Cold Spring Harbor Laboratory Press Resource The Bioperl Toolkit: Perl Modules for the Life Sciences Jason E. Stajich,1,18,19 David Block,2,18 Kris Boulez,3 Steven E. Brenner,4 Stephen A. Chervitz,5 Chris Dagdigian,6 Georg Fuellen,7 James G.R. Gilbert,8 Ian Korf,9 Hilmar Lapp,10 Heikki Lehva¨slaiho,11 Chad Matsalla,12 Chris J. Mungall,13 Brian I. Osborne,14 Matthew R. Pocock,8 Peter Schattner,15 Martin Senger,11 Lincoln D. Stein,16 Elia Stupka,17 Mark D. Wilkinson,2 and Ewan Birney11 1University Program in Genetics, Duke University, Durham, North Carolina 27710, USA; 2National Research Council of
    [Show full text]
  • Name Synopsis Description Main Methods
    Perl version 5.10.0 documentation - Pod::Simple NAME Pod::Simple - framework for parsing Pod SYNOPSIS TODO DESCRIPTION Pod::Simple is a Perl library for parsing text in the Pod ("plain olddocumentation") markup language that is typically used for writingdocumentation for Perl and for Perl modules. The Pod format is explainedin the perlpod man page; the most common formatter is called"perldoc". Pod formatters can use Pod::Simple to parse Pod documents into producerenderings of them in plain ASCII, in HTML, or in any number of otherformats. Typically, such formatters will be subclasses of Pod::Simple,and so they will inherit its methods, like parse_file. If you're reading this document just because you have a Pod-processingsubclass that you want to use, this document (plus the documentation forthe subclass) is probably all you'll need to read. If you're reading this document because you want to write a formattersubclass, continue reading this document, and then read Pod::Simple::Subclassing, and then possibly even read perlpodspec(some of which is for parser-writers, but much of which is notes toformatter-writers). MAIN METHODS $parser = SomeClass->new(); This returns a new parser object, where SomeClass is a subclassof Pod::Simple. $parser->output_fh( *OUT ); This sets the filehandle that $parser's output will be written to.You can pass *STDOUT, otherwise you should probably do somethinglike this: my $outfile = "output.txt"; open TXTOUT, ">$outfile" or die "Can't write to $outfile: $!"; $parser->output_fh(*TXTOUT); ...before you call one of the $parser->parse_whatever methods. $parser->output_string( \$somestring ); This sets the string that $parser's output will be sent to,instead of any filehandle.
    [Show full text]
  • Name Synopsis
    Perl version 5.10.0 documentation - perl NAME perl - Practical Extraction and Report Language SYNOPSIS perl [ -sTtuUWX ] [ -hv ] [ -V[:configvar] ] [ -cw ] [ -d[t][:debugger] ] [ -D[number/list] ] [ -pna ] [ -F pattern ] [ -l[octal] ] [ -0[octal/hexadecimal] ] [ -Idir ] [ -m[-]module ] [ -M[-]'module...' ] [ -f ] [ -C [ number/list] ] [ -P ] [ -S ] [ -x[dir] ] [ -i[extension] ] [ -e 'command' ] [ -- ] [ programfile ] [ argument ]... If you're new to Perl, you should start with perlintro, which is a general intro for beginners and provides some background to help younavigate the rest of Perl's extensive documentation. For ease of access, the Perl manual has been split up into several sections. Overview perlPerl overview (this section) perlintroPerl introduction for beginners perltocPerl documentation table of contents Tutorials perlreftutPerl references short introduction perldscPerl data structures intro perllolPerl data structures: arrays of arrays perlrequick Perl regular expressions quick start perlretutPerl regular expressions tutorial perlbootPerl OO tutorial for beginners perltootPerl OO tutorial, part 1 perltoocPerl OO tutorial, part 2 perlbotPerl OO tricks and examples perlstylePerl style guide perlcheatPerl cheat sheet perltrapPerl traps for the unwary perldebtutPerl debugging tutorial perlfaqPerl frequently asked questions perlfaq1General Questions About Perl perlfaq2Obtaining and Learning about Perl perlfaq3Programming Tools perlfaq4Data Manipulation perlfaq5Files and Formats perlfaq6Regexes perlfaq7Perl Language Issues perlfaq8System
    [Show full text]
  • Tred Code Analysis & Refactoring Documentation
    Charles University in Prague Faculty of Mathematics and Physics MASTER THESIS Peter Fabian Refactoring tree editor TrEd Institute of Formal and Applied Linguistics Supervisor of the master thesis: doc. Ing. Zdenˇek Zabokrtsk´y,ˇ Ph.D. Study programme: Computer Science Specialization: Mathematical Linguistics Prague 2011 I would like to thank my supervisor, Mr. Zabokrtsk´yforˇ the inspirations and his patience. I would also like to thank my family for their endless support. I declare that I carried out this master thesis independently, and only with the cited sources, literature and other professional sources. I understand that my work relates to the rights and obligations under the Act No. 121/2000 Coll., the Copyright Act, as amended, in particular the fact that the Charles University in Prague has the right to conclude a license agreement on the use of this work as a school work pursuant to Section 60 paragraph 1 of the Copyright Act. In ................... date ..................... N´azev pr´ace: Refaktorizace editoru strom˚uTrEd Autor: Peter Fabian Katedra: Ustav´ form´aln´ıa aplikovan´elingvistiky Vedouc´ıdiplomov´epr´ace: doc. Ing. Zdenˇek Zabokrtsk´y,ˇ Ph.D., Ustav´ form´aln´ı a aplikovan´elingvistiky Abstrakt: C´ılem pr´ace bylo refaktorizovat editor strom˚uTrEd, zlepˇsit t´ımjeho modularitu, usnadnit ´udrˇzbu a dalˇs´ıv´yvoj aplikace. D˚uraz byl tak´ekladen na zachov´an´ırychlosti programu. Zdrojov´yk´od TrEdu byl prozkoum´an metodami statick´ea dynamick´eanal´yzy, kter´epomohly identifikovat probl´emov´am´ısta. Bylo vytvoˇreno 50 nov´ych modul˚ua pˇresunuto znaˇcn´emnoˇzstv´ı k´odu. Byla tak´evytvoˇrena sada test˚u, zvolena pravidla pro psan´ınov´eho k´odu a seps´ana dokumentace ˇc´asti st´avaj´ıc´ıho k´odu.
    [Show full text]
  • Delta Controls Releasenotes01x00
    Delta Controls ReleaseNotes01x00 Copyright Information No part of this document may be reproduced, transmitted, transcribed, stored in a retrieval system or translated into any language (natural or computer), in any form or by any means, without the prior written permission of Delta Controls Inc. Limited permission is granted to reproduce documents released in Adobe Portable Document Format (PDF) electronic format in paper format. Documents released in PDF electronic format may be printed by end users for their own use using a printer such as an inkjet or laser device. Authorized distributors of Delta Controls Inc. products (Delta Partners) may print PDF documents for their own internal use or for use by their customers. Authorized Delta Partners may produce copies of released PDF documents with the prior written permission of Delta Controls Inc. Information in this document is subject to change without notice and does not represent a commitment to past versions of this document on the part of Delta Controls Inc. Copyright © 2021 Delta Controls Inc. All rights reserved Table of Contents Foswiki Release 1.0.10 - 08 Sep 2010.............................................................................................1 of 23 Foswiki - The Free and Open Source Wiki..............................................................................1 of 23 Foswiki 1.0 Releases..............................................................................................................1 of 23 Pre-installed Extensions..........................................................................................................2
    [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]
  • Bash 101: Intro to Shell Scripting
    Bash 101 Intro to Shell Scripting Updated: 2020-06-09 JP Vossen, CISSP bashcookbook.com http://www.jpsdomain.org/public/bash_101.pdf http://www.jpsdomain.org/public/bash_101.odp Agenda What is a “shell” and a “shell script?” Why should I care? How do I get started? Prompts, positional parameters & STDIO Anatomy of 'cdburn' Programming bash Settings I can't live without Revision Control What did we miss? What about Mac & Windows? What next? URLs, Wrap up and Q&A What is a “shell?” A program that provides an interface to an operating system (which is itself an interface to the hardware) May be CLI or GUI CLI = command line interface GUI = graphical user interface May have more than one available Bourne (sh), Bourne Again Shell (bash), Korn (ksh) zsh, fish, csh, tcsh, many, many others Unity, Cinnamon, Mate, KDE, Gnome, CDE, Presentation Manager, Workplace Shell, many, many others What is a “shell script?” Fundamentally just a list of commands to run May use arguments, variables, various control logic and arithmetic to figure out what to run when bash is integer only, other shells may not be Plain text file Used on CLI only Builds on: The “Unix” tool philosophy The “Unix” everything-is-a-file philosophy Why should I care? You can write new commands! Save time & effort and make life easier E.g., if you always type in four commands to accomplish some task, type them once into an editor, add a “shebang” line and comments, save and set execute permissions. You now have a shell script! Automation cron Consistency & Reliability (Process) Documentation One-liners If you suffer from CRS (Can't Remember...Crap) How do I get started? Fire up an editor #!/bin/bash - echo 'Hello world, my first shell script!' chmod +x script bash 'help' command! 'help set' vs.
    [Show full text]
  • Perl Debugged This Page Intentionally Left Blank Perl Debugged
    Perl Debugged This page intentionally left blank Perl Debugged Peter Scott and Ed Wright ADDISON-WESLEY Boston » 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 Addison- Wesley 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 omis- sions. 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. The publisher offers discounts on this book when ordered in quantity for special sales. For more information, please contact: Pearson Education Corporate Sales Division One Lake Street Upper Saddle River, NJ 07458 (800) 382-3419 [email protected] Visit AW on the Web: www.awl.com/cseng/ Library of Congress Cataloging-in-Publication Data Scott, Peter. Perl Debugged / Peter Scott and Ed Wright. p. cm. Includes bibliographical references and index. ISBN 0-201-70054-9 1. Perl (Computer program language) 2. Debugging in computer science. I. Wright, Ed. II. Title. QA76.73.P22 S39 2001 00-067550 005.13'3~dc21 CIP Copyright © 2001 by Addison-Wesley All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, electronic, mechanical, photocopy- ing, recording, or otherwise, without the prior consent of the publisher.
    [Show full text]