perltoc.pod
来自「ARM上的如果你对底层感兴趣」· POD 代码 · 共 2,687 行 · 第 1/5 页
POD
2,687 行
Delimiters
=item I'm having trouble matching over more than one line. What's wrong?
=item How can I pull out lines between two patterns that are themselves on
different lines?
=item I put a regular expression into $/ but it didn't work. What's wrong?
=item How do I substitute case insensitively on the LHS, but preserving
case on the RHS?
=item How can I make C<\w> match national character sets?
=item How can I match a locale-smart version of C</[a-zA-Z]/>?
=item How can I quote a variable to use in a regexp?
=item What is C</o> really for?
=item How do I use a regular expression to strip C style comments from a
file?
=item Can I use Perl regular expressions to match balanced text?
=item What does it mean that regexps are greedy? How can I get around it?
=item How do I process each word on each line?
=item How can I print out a word-frequency or line-frequency summary?
=item How can I do approximate matching?
=item How do I efficiently match many regular expressions at once?
=item Why don't word-boundary searches with C<\b> work for me?
=item Why does using $&, $`, or $' slow my program down?
=item What good is C<\G> in a regular expression?
=item Are Perl regexps DFAs or NFAs? Are they POSIX compliant?
=item What's wrong with using grep or map in a void context?
=item How can I match strings with multibyte characters?
=back
=item AUTHOR AND COPYRIGHT
=head2 perlfaq7 - Perl Language Issues ($Revision: 1.21 $, $Date:
1998/06/22 15:20:07 $)
=item DESCRIPTION
=over
=item Can I get a BNF/yacc/RE for the Perl language?
=item What are all these $@%* punctuation signs, and how do I know when to
use them?
=item Do I always/never have to quote my strings or use semicolons and
commas?
=item How do I skip some return values?
=item How do I temporarily block warnings?
=item What's an extension?
=item Why do Perl operators have different precedence than C operators?
=item How do I declare/create a structure?
=item How do I create a module?
=item How do I create a class?
=item How can I tell if a variable is tainted?
=item What's a closure?
=item What is variable suicide and how can I prevent it?
=item How can I pass/return a {Function, FileHandle, Array, Hash, Method,
Regexp}?
Passing Variables and Functions, Passing Filehandles, Passing Regexps,
Passing Methods
=item How do I create a static variable?
=item What's the difference between dynamic and lexical (static) scoping?
Between local() and my()?
=item How can I access a dynamic variable while a similarly named lexical
is in scope?
=item What's the difference between deep and shallow binding?
=item Why doesn't "my($foo) = <FILE>;" work right?
=item How do I redefine a builtin function, operator, or method?
=item What's the difference between calling a function as &foo and foo()?
=item How do I create a switch or case statement?
=item How can I catch accesses to undefined variables/functions/methods?
=item Why can't a method included in this same file be found?
=item How can I find out my current package?
=item How can I comment out a large block of perl code?
=back
=item AUTHOR AND COPYRIGHT
=head2 perlfaq8 - System Interaction ($Revision: 1.25 $, $Date: 1998/07/05
15:07:20 $)
=item DESCRIPTION
=over
=item How do I find out which operating system I'm running under?
=item How come exec() doesn't return?
=item How do I do fancy stuff with the keyboard/screen/mouse?
Keyboard, Screen, Mouse
=item How do I print something out in color?
=item How do I read just one key without waiting for a return key?
=item How do I check whether input is ready on the keyboard?
=item How do I clear the screen?
=item How do I get the screen size?
=item How do I ask the user for a password?
=item How do I read and write the serial port?
lockfiles, open mode, end of line, flushing output, non-blocking input
=item How do I decode encrypted password files?
=item How do I start a process in the background?
STDIN, STDOUT, and STDERR are shared, Signals, Zombies
=item How do I trap control characters/signals?
=item How do I modify the shadow password file on a Unix system?
=item How do I set the time and date?
=item How can I sleep() or alarm() for under a second?
=item How can I measure time under a second?
=item How can I do an atexit() or setjmp()/longjmp()? (Exception handling)
=item Why doesn't my sockets program work under System V (Solaris)? What
does the error message "Protocol not supported" mean?
=item How can I call my system's unique C functions from Perl?
=item Where do I get the include files to do ioctl() or syscall()?
=item Why do setuid perl scripts complain about kernel problems?
=item How can I open a pipe both to and from a command?
=item Why can't I get the output of a command with system()?
=item How can I capture STDERR from an external command?
=item Why doesn't open() return an error when a pipe open fails?
=item What's wrong with using backticks in a void context?
=item How can I call backticks without shell processing?
=item Why can't my script read from STDIN after I gave it EOF (^D on Unix,
^Z on MS-DOS)?
=item How can I convert my shell script to perl?
=item Can I use perl to run a telnet or ftp session?
=item How can I write expect in Perl?
=item Is there a way to hide perl's command line from programs such as
"ps"?
=item I {changed directory, modified my environment} in a perl script. How
come the change disappeared when I exited the script? How do I get my
changes to be visible?
Unix
=item How do I close a process's filehandle without waiting for it to
complete?
=item How do I fork a daemon process?
=item How do I make my program run with sh and csh?
=item How do I find out if I'm running interactively or not?
=item How do I timeout a slow event?
=item How do I set CPU limits?
=item How do I avoid zombies on a Unix system?
=item How do I use an SQL database?
=item How do I make a system() exit on control-C?
=item How do I open a file without blocking?
=item How do I install a CPAN module?
=item What's the difference between require and use?
=item How do I keep my own module/library directory?
=item How do I add the directory my program lives in to the module/library
search path?
=item How do I add a directory to my include path at runtime?
=back
=item AUTHOR AND COPYRIGHT
=head2 perlfaq9 - Networking ($Revision: 1.20 $, $Date: 1998/06/22 18:31:09
$)
=item DESCRIPTION
=over
=item My CGI script runs from the command line but not the browser. (500
Server Error)
=item How can I get better error messages from a CGI program?
=item How do I remove HTML from a string?
=item How do I extract URLs?
=item How do I download a file from the user's machine? How do I open a
file on another machine?
=item How do I make a pop-up menu in HTML?
=item How do I fetch an HTML file?
=item How do I automate an HTML form submission?
=item How do I decode or create those %-encodings on the web?
=item How do I redirect to another page?
=item How do I put a password on my web pages?
=item How do I edit my .htpasswd and .htgroup files with Perl?
=item How do I make sure users can't enter values into a form that cause my
CGI script to do bad things?
=item How do I parse a mail header?
=item How do I decode a CGI form?
=item How do I check a valid mail address?
=item How do I decode a MIME/BASE64 string?
=item How do I return the user's mail address?
=item How do I send mail?
=item How do I read mail?
=item How do I find out my hostname/domainname/IP address?
=item How do I fetch a news article or the active newsgroups?
=item How do I fetch/put an FTP file?
=item How can I do RPC in Perl?
=back
=item AUTHOR AND COPYRIGHT
=head2 perldelta - what's new for perl5.005
=item DESCRIPTION
=item About the new versioning system
=item Incompatible Changes
=over
=item WARNING: This version is not binary compatible with Perl 5.004.
=item Default installation structure has changed
=item Perl Source Compatibility
=item C Source Compatibility
Core sources now require ANSI C compiler, All Perl global variables must
now be referenced with an explicit prefix, Enabling threads has source
compatibility issues
=item Binary Compatibility
=item Security fixes may affect compatibility
=item Relaxed new mandatory warnings introduced in 5.004
=item Licensing
=back
=item Core Changes
=over
=item Threads
=item Compiler
=item Regular Expressions
Many new and improved optimizations, Many bug fixes, New regular expression
constructs, New operator for precompiled regular expressions, Other
improvements, Incompatible changes
=item Improved malloc()
=item Quicksort is internally implemented
=item Reliable signals
=item Reliable stack pointers
=item More generous treatment of carriage returns
=item Memory leaks
=item Better support for multiple interpreters
=item Behavior of local() on array and hash elements is now well-defined
=item C<%!> is transparently tied to the L<Errno> module
=item Pseudo-hashes are supported
=item C<EXPR foreach EXPR> is supported
=item Keywords can be globally overridden
=item C<$^E> is meaningful on Win32
=item C<foreach (1..1000000)> optimized
=item C<Foo::> can be used as implicitly quoted package name
=item C<exists $Foo::{Bar::}> tests existence of a package
=item Better locale support
=item Experimental support for 64-bit platforms
=item prototype() returns useful results on builtins
=item Extended support for exception handling
=item Re-blessing in DESTROY() supported for chaining DESTROY() methods
=item All C<printf> format conversions are handled internally
=item New C<INIT> keyword
=item New C<lock> keyword
=item New C<qr//> operator
=item C<our> is now a reserved word
=item Tied arrays are now fully supported
=item Tied handles support is better
=item 4th argument to substr
=item Negative LENGTH argument to splice
=item Magic lvalues are now more magical
=item E<lt>E<gt> now reads in records
=back
=item Supported Platforms
=over
=item New Platforms
=item Changes in existing support
=back
=item Modules and Pragmata
=over
=item New Modules
B, Data::Dumper, Errno, File::Spec, ExtUtils::Installed,
ExtUtils::Packlist, Fatal, IPC::SysV, Test, Tie::Array, Tie::Handle,
Thread, attrs, fields, re
=item Changes in existing modules
CGI, POSIX, DB_File, MakeMaker, CPAN, Cwd, Benchmark
=back
=item Utility Changes
=item Documentation Changes
=item New Diagnostics
Ambiguous call resolved as CORE::%s(), qualify as such or use &, Bad index
while coercing array into hash, Bareword "%s" refers to nonexistent
package, Can't call method "%s" on an undefined value, Can't coerce array
into hash, Can't goto subroutine from an eval-string, Can't localize
pseudo-hash element, Can't use %%! because Errno.pm is not available,
Cannot find an opnumber for "%s", Character class syntax [. .] is reserved
for future extensions, Character class syntax [: :] is reserved for future
extensions, Character class syntax [= =] is reserved for future extensions,
%s: Eval-group in insecure regular expression, %s: Eval-group not allowed,
use re 'eval', %s: Eval-group not allowed at run time, Explicit blessing to
'' (assuming package main), Illegal hex digit ignored, No such array field,
No such field "%s" in variable %s of type %s, Out of memory during
ridiculously large request, Range iterator outside integer range, Recursive
inheritance detected while looking for method '%s' in package '%s',
Reference found where even-sized list expected, Undefined value assigned to
typeglob, Use of reserved word "%s" is deprecated, perl: warning: Setting
locale failed
=item Obsolete Diagnostics
Can't mktemp(), Can't write to temp file for B<-e>: %s, Cannot open
temporary file
=item BUGS
=item SEE ALSO
=item HISTORY
=head2 perldata - Perl data types
=item DESCRIPTION
=over
=item Variable names
=item Context
=item Scalar values
=item Scalar value constructors
=item List value constructors
=item Typeglobs and Filehandles
=back
=head2 perlsyn - Perl syntax
=item DESCRIPTION
=over
=item Declarations
=item Simple statements
=item Compound statements
=item Loop Control
=item For Loops
=item Foreach Loops
=item Basic BLOCKs and Switch Statements
=item Goto
=item PODs: Embedded Documentation
=item Plain Old Comments (Not!)
=back
=head2 perlop - Perl operators and precedence
=item SYNOPSIS
=item DESCRIPTION
=over
=item Terms and List Operators (Leftward)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?