Perl Brasil

Pesquisar

Documentação

Artigos

Planeta

Eventos

Comunidade

r3 - 29 Jul 2006 - JoenioCosta


NAME

<!-- # !!!!!!! DO NOT EDIT THIS FILE !!!!!!! # This file is autogenerated by buildtoc from all the other pods. # Edit those files and run buildtoc --build-toc to effect changes. --> perltoc - perl documentation table of contents

voltar para o topo


DESCRIPTION

This page provides a brief table of contents for the rest of the Perl documentation set. It is meant to be scanned quickly or grepped through to locate the proper section you're looking for.

voltar para o topo


BASIC DOCUMENTATION

perl - Practical Extraction and Report Language

SYNOPSIS

Overview

Tutorials

Reference Manual

Internals and C Language Interface

Miscellaneous

Language-Specific

Platform-Specific

DESCRIPTION

AVAILABILITY

ENVIRONMENT

AUTHOR

FILES

SEE ALSO

DIAGNOSTICS

BUGS

NOTES

perlintro -- a brief introduction and overview of Perl

DESCRIPTION

What is Perl?

Running Perl programs

Basic syntax overview

Perl variable types
Scalars, Arrays, Hashes

Variable scoping

Conditional and looping constructs
if, while, for, foreach

Builtin operators and functions
Arithmetic, Numeric comparison, String comparison, Boolean logic,
Miscellaneous

Files and I/O

Regular expressions
Simple matching, Simple substitution, More complex regular expressions,
Parentheses for capturing, Other regexp features

Writing subroutines

OO Perl

Using Perl modules

AUTHOR

perlreftut - Mark's very short tutorial about references

DESCRIPTION

Who Needs Complicated Data Structures?

The Solution

Syntax

Making References

Using References

An Example

Arrow Rule

Solution

The Rest

Summary

Credits

Distribution Conditions

perldsc - Perl Data Structures Cookbook

DESCRIPTION
arrays of arrays, hashes of arrays, arrays of hashes, hashes of hashes,
more elaborate constructs

REFERENCES

COMMON MISTAKES

CAVEAT ON PRECEDENCE

WHY YOU SHOULD ALWAYS use strict

DEBUGGING

CODE EXAMPLES

ARRAYS OF ARRAYS

Declaration of an ARRAY OF ARRAYS

Generation of an ARRAY OF ARRAYS

Access and Printing of an ARRAY OF ARRAYS

HASHES OF ARRAYS

Declaration of a HASH OF ARRAYS

Generation of a HASH OF ARRAYS

Access and Printing of a HASH OF ARRAYS

ARRAYS OF HASHES

Declaration of an ARRAY OF HASHES

Generation of an ARRAY OF HASHES

Access and Printing of an ARRAY OF HASHES

HASHES OF HASHES

Declaration of a HASH OF HASHES

Generation of a HASH OF HASHES

Access and Printing of a HASH OF HASHES

MORE ELABORATE RECORDS

Declaration of MORE ELABORATE RECORDS

Declaration of a HASH OF COMPLEX RECORDS

Generation of a HASH OF COMPLEX RECORDS

Database Ties

SEE ALSO

AUTHOR

perllol - Manipulating Arrays of Arrays in Perl

DESCRIPTION

Declaration and Access of Arrays of Arrays

Growing Your Own

Access and Printing

Slices

SEE ALSO

AUTHOR

perlrequick - Perl regular expressions quick start

DESCRIPTION

The Guide

Simple word matching

Using character classes

Matching this or that

Grouping things and hierarchical matching

Extracting matches

Matching repetitions

More matching

Search and replace

The split operator

BUGS

SEE ALSO

AUTHOR AND COPYRIGHT

Acknowledgments

perlretut - Perl regular expressions tutorial

DESCRIPTION

Part 1: The basics

Simple word matching

Using character classes

Matching this or that

Grouping things and hierarchical matching

Extracting matches

Matching repetitions

Building a regexp

Using regular expressions in Perl

Part 2: Power tools

More on characters, strings, and character classes

Compiling and saving regular expressions

Embedding comments and modifiers in a regular expression

Non-capturing groupings

Looking ahead and looking behind

Using independent subexpressions to prevent backtracking

Conditional expressions

A bit of magic: executing Perl code in a regular expression

Pragmas and debugging

BUGS

SEE ALSO

AUTHOR AND COPYRIGHT

Acknowledgments

perlboot - Beginner's Object-Oriented Tutorial

DESCRIPTION

If we could talk to the animals...

Introducing the method invocation arrow

Invoking a barnyard

The extra parameter of method invocation

Calling a second method to simplify things

Inheriting the windpipes

A few notes about @ISA

Overriding the methods

Starting the search from a different place

The SUPER way of doing things

Where we're at so far...

A horse is a horse, of course of course -- or is it?

Invoking an instance method

Accessing the instance data

How to build a horse

Inheriting the constructor

Making a method work with either classes or instances

Adding parameters to a method

More interesting instances

A horse of a different color

Summary

SEE ALSO

COPYRIGHT

perltoot - Tom's object-oriented tutorial for perl

DESCRIPTION

Creating a Class

Object Representation

Class Interface

Constructors and Instance Methods

Planning for the Future: Better Constructors

Destructors

Other Object Methods

Class Data

Accessing Class Data

Debugging Methods

Class Destructors

Documenting the Interface

Aggregation

Inheritance

Overridden Methods

Multiple Inheritance

UNIVERSAL: The Root of All Objects

Alternate Object Representations

Arrays as Objects

Closures as Objects

AUTOLOAD: Proxy Methods

Autoloaded Data Methods

Inherited Autoloaded Data Methods

Metaclassical Tools

Class::Struct

Data Members as Variables

NOTES

Object Terminology

SEE ALSO

AUTHOR AND COPYRIGHT

COPYRIGHT

Acknowledgments

perltooc - Tom's OO Tutorial for Class Data in Perl

DESCRIPTION

Class Data in a Can

Class Data as Package Variables

Putting All Your Eggs in One Basket

Inheritance Concerns

The Eponymous Meta-Object

Indirect References to Class Data

Monadic Classes

Translucent Attributes

Class Data as Lexical Variables

Privacy and Responsibility

File-Scoped Lexicals

More Inheritance Concerns

Locking the Door and Throwing Away the Key

Translucency Revisited

NOTES

SEE ALSO

AUTHOR AND COPYRIGHT

ACKNOWLEDGEMENTS

HISTORY

perlbot - Bag'o Object Tricks (the BOT)

DESCRIPTION

OO SCALING TIPS

INSTANCE VARIABLES

SCALAR INSTANCE VARIABLES

INSTANCE VARIABLE INHERITANCE

OBJECT RELATIONSHIPS

OVERRIDING SUPERCLASS METHODS

USING RELATIONSHIP WITH SDBM

THINKING OF CODE REUSE

CLASS CONTEXT AND THE OBJECT

INHERITING A CONSTRUCTOR

DELEGATION

SEE ALSO

perlstyle - Perl style guide

DESCRIPTION

perlcheat - Perl 5 Cheat Sheet

DESCRIPTION

The sheet

ACKNOWLEDGEMENTS

AUTHOR

SEE ALSO

perltrap - Perl traps for the unwary

DESCRIPTION

Awk Traps

C/C++ Traps

Sed Traps

Shell Traps

Perl Traps

Perl4 to Perl5 Traps
Discontinuance, Deprecation, and BugFix? traps, Parsing Traps, Numerical
Traps, General data type traps, Context Traps - scalar, list contexts,
Precedence Traps, General Regular Expression Traps using s///, etc,
Subroutine, Signal, Sorting Traps, OS Traps, DBM Traps, Unclassified Traps

Discontinuance, Deprecation, and BugFix? traps
Symbols starting with ``_'' no longer forced into main, Double-colon valid
package separator in variable name, 2nd and 3rd args to splice() are now
in scalar context, Can't do goto into a block that is optimized away,
Can't use whitespace as variable name or quote delimiter, while/if BLOCK
BLOCK> gone, ** binds tighter than unary minus, foreach changed when
iterating over a list, split with no args behavior changed, -e
behavior fixed, push returns number of elements in resulting list, Some
error messages differ, split() honors subroutine args, Bugs removed

Parsing Traps
Space between . and = triggers syntax error, Better parsing in perl 5,
Function parsing, String interpolation of $#array differs, Perl guesses
on map, grep followed by { if it starts BLOCK or hash ref

Numerical Traps
Formatted output and significant digits, Auto-increment operator over
signed int limit deleted, Assignment of return values from numeric equality
tests doesn't work, Bitwise string ops

General data type traps
Negative array subscripts now count from the end of array, Setting
$#array lower now discards array elements, Hashes get defined before
use, Glob assignment from localized variable to variable, Assigning
undef to glob, Changes in unary negation (of strings), Modifying of
constants prohibited, defined $var behavior changed, Variable Suicide

Context Traps - scalar, list contexts
Elements of argument lists for formats evaluated in list context,
caller() returns false value in scalar context if no caller present,
Comma operator in scalar context gives scalar context to args, sprintf()
prototyped as ($;@)

Precedence Traps
LHS vs. RHS of any assignment operator, Semantic errors introduced due to
precedence, Precedence of assignment operators same as the precedence of
assignment, open requires parentheses around filehandle, $:
precedence over $:: gone, Precedence of file test operators documented,
keys, each, values are regular named unary operators

General Regular Expression Traps using s///, etc.
s'$lhs'$rhs' interpolates on either side, m//g attaches its state to
the searched string, m//o used within an anonymous sub, $+ isn't set
to whole match, Substitution now returns null string if it fails,
s`lhs`rhs` is now a normal substitution, Stricter parsing of variables
in regular expressions, m?x? matches only once, Failed matches don't
reset the match variables

Subroutine, Signal, Sorting Traps
Barewords that used to look like strings look like subroutine calls,
Reverse is no longer allowed as the name of a sort subroutine, warn()
won't let you specify a filehandle

OS Traps
SysV? resets signal handler correctly, SysV? seek() appends correctly

Interpolation Traps
@ always interpolates an array in double-quotish strings, Double-quoted
strings may no longer end with an unescaped $, Arbitrary expressions are
evaluated inside braces within double quotes, $$x now tries to
dereference $x, Creation of hashes on the fly with eval "EXPR" requires
protection, Bugs in earlier perl versions, Array and hash brackets during
interpolation, Interpolation of \$$foo{bar}, qq() string passed to
eval will not find string terminator

DBM Traps
Perl5 must have been linked with same dbm/ndbm as the default for
dbmopen(), DBM exceeding limit on the key/value size will cause perl5 to
exit immediately

Unclassified Traps
require/do trap using returned value, split on empty string with
LIMIT specified

perldebtut - Perl debugging tutorial

DESCRIPTION

use strict

Looking at data and -w and v

help

Stepping through code

Placeholder for a, w, t, T

REGULAR EXPRESSIONS

OUTPUT TIPS

CGI

GUIs

SUMMARY

SEE ALSO

AUTHOR

CONTRIBUTORS

perlfaq - frequently asked questions about Perl ($Date: 2005/03/27

07:21:21 $)

DESCRIPTION

Where to get the perlfaq

How to contribute to the perlfaq

What will happen if you mail your Perl programming problems to the
authors

Credits

Author and Copyright Information

Bundled Distributions

Disclaimer

Table of Contents
perlfaq - this document, perlfaq1 - General Questions About Perl, perlfaq2
- Obtaining and Learning about Perl, perlfaq3 - Programming Tools, perlfaq4
- Data Manipulation, perlfaq5 - Files and Formats, perlfaq6 - Regular
Expressions, perlfaq7 - General Perl Language Issues, perlfaq8 - System
Interaction, perlfaq9 - Networking

The Questions

the perlfaq1 manpage: General Questions About Perl

the perlfaq2 manpage: Obtaining and Learning about Perl

the perlfaq3 manpage: Programming Tools

the perlfaq4 manpage: Data Manipulation

the perlfaq5 manpage: Files and Formats

the perlfaq6 manpage: Regular Expressions

the perlfaq7 manpage: General Perl Language Issues

the perlfaq8 manpage: System Interaction

the perlfaq9 manpage: Networking

perlfaq1 - General Questions About Perl ($Revision: 1.3 $, $Date:

2005/01/31 15:52:15 $)

DESCRIPTION

What is Perl?

Who supports Perl? Who develops it? Why is it free?

Which version of Perl should I use?

What are perl4, perl5, or perl6?

What is Ponie?

What is perl6?

How stable is Perl?

Is Perl difficult to learn?

How does Perl compare with other languages like Java, Python, REXX,
Scheme, or Tcl?

Can I do [task] in Perl?

When shouldn't I program in Perl?

What's the difference between ``perl'' and ``Perl''?

Is it a Perl program or a Perl script?

What is a JAPH?

Where can I get a list of Larry Wall witticisms?

How can I convince my sysadmin/supervisor/employees to use version
5/5.6.1/Perl instead of some other language?

AUTHOR AND COPYRIGHT

perlfaq2 - Obtaining and Learning about Perl ($Revision: 1.3 $,

$Date: 2006/07/29 15:14:09 $)

DESCRIPTION

What machines support Perl? Where do I get it?

How can I get a binary version of Perl?

I don't have a C compiler on my system. How can I compile perl?

I copied the Perl binary from one machine to another, but scripts
don't work.

I grabbed the sources and tried to compile but gdbm/dynamic
loading/malloc/linking/... failed. How do I make it work?

What modules and extensions are available for Perl? What is CPAN?
What does CPAN/src/... mean?

Is there an ISO or ANSI certified version of Perl?

Where can I get information on Perl?

What are the Perl newsgroups on Usenet? Where do I post questions?

Where should I post source code?

Perl Books
References, Tutorials, Task-Oriented, Special Topics

Perl in Magazines

Perl on the Net: FTP and WWW Access

What mailing lists are there for Perl?

Archives of comp.lang.perl.misc

Where can I buy a commercial v