NAME DESCRIPTION BASIC DOCUMENTATION Man.Fyi Mageia 6
Total Page:16
File Type:pdf, Size:1020Kb
Mageia 6 man.fyi PERLTOC(1) Perl Programmers Reference Guide PERLTOC(1) NAME perltoc − perl documentation table of contents 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. BASIC DOCUMENTATION perl − The Perl 5 language interpreter SYNOPSIS GETTING HELP Overview Tutorials Reference Manual Internals and C Language Interface Miscellaneous Language-Specific Platform-Specific Stubs for Deleted Documents DESCRIPTION AVA ILABILITY ENVIRONMENT AUTHOR FILES SEE ALSO DIAGNOSTICS BUGS NOTES perlintro—abrief introduction and overview of Perl DESCRIPTION What is Perl? Running Perl programs Safety net 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 complexregular expressions, Parentheses for capturing, Other regexp features Writing subroutines OO Perl Using Perl modules AUTHOR perlrun − howtoexecute the Perl interpreter SYNOPSIS DESCRIPTION #! and quoting on non-Unix systems OS/2, MS-DOS, Win95/NT, VMS Location of Perl perl v5.22.3 2018-04-27 1 Mageia 6 man.fyi PERLTOC(1) Perl Programmers Reference Guide PERLTOC(1) Command Switches −0[octal/hexadecimal],−a , −C [number/list] , −c , −d , −dt, −d:MOD[=bar,baz] , −dt:MOD[=bar,baz], −Dletters , −Dnumber, −e commandline , −E commandline , −f , −Fpattern , −h , −i[extension],−Idirectory , −l[octnum],−m[−]module , −M[−]module, −M[−]’module ...’, −[mM][−]module=arg[,arg]..., −n , −p , −s , −S , −t , −T , −u , −U , −v , −V , −V:configvar, −w , −W , −X , −x , −xdirectory ENVIRONMENT HOME , LOGDIR , PATH , PERL5LIB , PERL5OPT , PERLIO ,:bytes , :crlf , :mmap , :perlio , :pop , :raw,:stdio , :unix , :utf8 , :win32 , PERLIO_DEBUG , PERLLIB , PERL5DB , PERL5DB_THREADED , PERL5SHELL (specific to the Win32 port) , PERL_ALLOW_NON_IFS_LSP (specific to the Win32 port) , PERL_DEBUG_MSTATS , PERL_DESTRUCT_LEVEL , PERL_DL_NONLAZY , PERL_ENCODING , PERL_HASH_SEED , PERL_PERTURB_KEYS , PERL_HASH_SEED_DEBUG , PERL_MEM_LOG , PERL_ROOT (specific to the VMS port) , PERL_SIGNALS , PERL_UNICODE , SYS$LOGIN (specific to the VMS port) perlreftut − Mark’svery short tutorial about references DESCRIPTION Who Needs Complicated Data Structures? The Solution Syntax Making References Using References An Example ArrowRule 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 CAVEATONPRECEDENCE WHY YOU SHOULD ALWA YS use strict DEBUGGING CODE EXAMPLES ARRAYS OF ARRAYS Declaration of an ARRAYOFARRAYS Generation of an ARRAYOFARRAYS Access and Printing of an ARRAYOFARRAYS 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 ARRAYOFHASHES Generation of an ARRAYOFHASHES Access and Printing of an ARRAYOFHASHES 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 perl v5.22.3 2018-04-27 2 Mageia 6 man.fyi PERLTOC(1) Perl Programmers Reference Guide PERLTOC(1) 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 use re 'strict' 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 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Extracting matches Backreferences Relative backreferences Named backreferences Alternative capture group numbering Position information Non-capturing groupings Matching repetitions 0, 1, 2, 3, 4, 5, 6 Possessive quantifiers Building a regexp Using regular expressions in Perl Part 2: Power tools More on characters, strings, and character classes Compiling and saving regular expressions Composing regular expressions at runtime Embedding comments and modifiers in a regular expression perl v5.22.3 2018-04-27 3 Mageia 6 man.fyi PERLTOC(1) Perl Programmers Reference Guide PERLTOC(1) Looking ahead and looking behind Using independent subexpressions to prevent backtracking Conditional expressions Defining named patterns Recursive patterns Abit of magic: executing Perl code in a regular expression Backtracking control verbs Pragmas and debugging BUGS SEE ALSO AUTHOR AND COPYRIGHT Acknowledgments perlootut − Object-Oriented Programming in Perl Tutorial DATE DESCRIPTION OBJECT-ORIENTED FUNDAMENTALS Object Class Methods Attributes Polymorphism Inheritance Encapsulation Composition Roles When to Use OO PERL OO SYSTEMS Moose Declarative sugar,Roles built-in, A miniature type system, Full introspection and manipulation, Self-hosted and extensible, Rich ecosystem, Manymore features Class::Accessor Class::Tiny Role::Tiny OO System Summary Moose, Class::Accessor,Class::Tiny, Role::Tiny Other OO Systems CONCLUSION perlperf − Perl Performance and Optimization Techniques DESCRIPTION OVERVIEW ONE STEP SIDEWAYS ONE STEP FORWARD ANOTHER STEP SIDEWAYS GENERAL GUIDELINES BENCHMARKS Assigning and Dereferencing Variables. Search and replace or tr PROFILING TOOLS Devel::DProf Devel::Profiler Devel::SmallProf Devel::FastProf Devel::NYTProf SORTING Elapsed Real Time, User CPU Time, System CPU Time perl v5.22.3 2018-04-27 4 Mageia 6 man.fyi PERLTOC(1) Perl Programmers Reference Guide PERLTOC(1) LOGGING Logging if DEBUG (constant) POSTSCRIPT SEE ALSO PERLDOCS MAN PAGES MODULES URLS AUTHOR perlstyle − Perl style guide DESCRIPTION perlcheat − Perl 5 Cheat Sheet DESCRIPTION The sheet ACKNOWLEDGEMENTS AUTHOR SEE ALSO perltrap − Perl traps for the unwary DESCRIPTION AwkTraps C/C++ Traps JavaScript Traps Sed Traps Shell Traps Perl Traps 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 VERSION DESCRIPTION Where to find the perlfaq Howtouse the perlfaq Howtocontribute to the perlfaq What if my question isn’tanswered in the FA Q? TABLE OF CONTENTS 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 − Web, Email and Networking THE QUESTIONS perlfaq1: General Questions About Perl perl v5.22.3 2018-04-27 5 Mageia 6 man.fyi PERLTOC(1) Perl Programmers Reference Guide PERLTOC(1) 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: Web, Email and Networking CREDITS AUTHOR AND COPYRIGHT perlfaq1 − General Questions About Perl VERSION DESCRIPTION What is Perl? Who supports Perl? Who develops it? Whyisitfree? Which version of Perl should I use? What are Perl 4, Perl 5, or Perl 6? What is Perl 6? Howstable is Perl? Howoften are newversions of Perl released? Is Perl difficult to learn? Howdoes Perl compare with other languages likeJava, Python, REXX, Scheme, or Tcl? Can I do [task] in Perl? When shouldn’tIprogram in Perl? What’sthe difference between ‘‘perl’’and ‘‘Perl’’? What is a JAPH? Howcan I convince others to use Perl? <http://www.perl.org/about.html>, <http://perltraining.com.au/whyperl.html> AUTHOR AND COPYRIGHT perlfaq2 − Obtaining and Learning about Perl VERSION DESCRIPTION What machines support Perl? Where do I get it? Howcan I get a binary version of Perl? Idon’thav e aCcompiler.How can I build my own Perl interpreter? Icopied the Perl binary from one machine to another,but scripts don’twork. Igrabbed the sources and tried to compile but gdbm/dynamic loading/malloc/linking/... failed. HowdoImakeitwork? What modules and extensions are available for Perl? What is CPAN? Where can I get information on Perl? <http://www.perl.org/>, <http://perldoc.perl.org/>, <http://learn.perl.org/> What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? <http://www.perl.org/>, <http://learn.perl.org/>, <http://jobs.perl.org/>, <http://lists.perl.org/> Where can I post questions? Perl Books Which magazines have Perl content? Which Perl blogs should I read? What mailing lists are there for Perl? Where can I buy a commercial version of Perl? Where do I send bug reports? AUTHOR AND COPYRIGHT perlfaq3 − Programming Tools VERSION perl v5.22.3 2018-04-27 6 Mageia 6 man.fyi PERLTOC(1) Perl Programmers Reference Guide PERLTOC(1) DESCRIPTION HowdoIdo(anything)? Basics, perldata − Perl