home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!sol.ctr.columbia.edu!spool.mu.edu!uwm.edu!biosci!ig!philips.oz.au!brianw
- From: brianw@philips.oz.au (Brian Wallis)
- Newsgroups: comp.os.coherent
- Subject: Re: perl ported?
- Message-ID: <9301080205.5831@munnari.oz.au>
- Date: 8 Jan 93 00:36:05 GMT
- References: <199301070949.AA05934@PCS3.ITI.INFORMATIK.TH-DARMSTADT.DE>
- Sender: daemon@presto.ig.com
- Reply-To: "Coherent operating system" <COHERENT@indycms.bitnet>
- Lines: 58
-
- In comp.os.coherent you write:
-
-
- > Hello from a beginner.
- > Sorry to bother you, but what's perl anyway ?
-
- > Thanks for your time,
- > Dragos
-
- Perl is a useful utility program that people seem to either love or hate.
- Personally I love it. It is a language in which you can quickly and easily
- write scripts for all sorts of text manipulation tasks, but it is not limited
- to those tasks.
-
- A copy of the infamous Camel book is a worth while purchase. (I can't find my
- copy so I cannot give a reference, it's in the Nutshell series from O'Reilly I
- think)
-
- From the man page...
-
- NAME
- perl - Practical Extraction and Report Language
-
- SYNOPSIS
- perl [options] filename args
-
- DESCRIPTION
- Perl is an interpreted language optimized for scanning arbitrary text
- files, extracting information from those text files, and printing
- reports based on that information. It's also a good language for many
- system management tasks. The language is intended to be practical
- (easy to use, efficient, complete) rather than beautiful (tiny,
- elegant, minimal). It combines (in the author's opinion, anyway) some
- of the best features of C, sed, awk, and sh, so people familiar with
- those languages should have little difficulty with it. (Language
- historians will also note some vestiges of csh, Pascal, and even
- BASIC-PLUS.) Expression syntax corresponds quite closely to C
- expression syntax. Unlike most Unix utilities, perl does not
- arbitrarily limit the size of your data--if you've got the memory,
- perl can slurp in your whole file as a single string. Recursion is of
- unlimited depth. And the hash tables used by associative arrays grow
- as necessary to prevent degraded performance. Perl uses sophisticated
- pattern matching techniques to scan large amounts of data very
- quickly. Although optimized for scanning text, perl can also deal
- with binary data, and can make dbm files look like associative arrays
- (where dbm is available). Setuid perl scripts are safer than C
- programs through a dataflow tracing mechanism which prevents many
- stupid security holes. If you have a problem that would ordinarily
- use sed or awk or sh, but it exceeds their capabilities or must run a
- little faster, and you don't want to write the silly thing in C, then
- perl may be for you. There are also translators to turn your sed and
- awk scripts into perl scripts.
-
- --
- -----------------------------------------------------------------
- Brian Wallis <brianw@philips.oz.au> Phone: +61 3 8813576
- Philips Public Telecommunications Systems Fax: +61 3 8813577
- Melbourne, Australia
-