PERLFAQ 7
目录
PERLFAQ
NAMEDESCRIPTION æè¿°
Credits è´è°¢
Author and Copyright Information
Table of Contents ç®å½
The Questions é®é¢
è¯è
NAME
perlfaq - Perl 常é®é®é¢é (2003/01/31 17:37:17)
DESCRIPTION æè¿°
perlfaq æç§ä¸»é¢åå为å¤ä¸ªææ¡£ï¼å¨æ¬ææ¡£çæ«å°¾æä¸ä¸ªç®å½ã
Where to get the perlfaq å¦ä½åå¾è¿ä»½æä»¶ï¼
è¿ä»½æä»¶ä¼å®ææå° comp.lang.perl.miscãä¹å¯ä»¥å¨è®¸å¤ç½ç«ä¸æ¾å°å®ï¼ä¾å¦ http://www.perldoc.com/ è¿æ http://faq.perl.org/ è¯è注ï¼ä¸¤åªèèå·¥ä½å®¤çä½ç½®æ¯ http://2Ti.com/cgi-bin/2T/perl/ è¿æ ftp://www.math.ncu.edu.tw/pub/staff/chenym/FAQ/Perl/ è¿æ <pailing@2Ti.com>
How to contribute to the perlfaq å¦ä½ä¸º perlfaq åè´¡ç®ï¼
ä½ å¯ä»¥å°æ´æ£ï¼æ©å以å建议以é®ä»¶æ¹å¼åéå° perlfaq-workers@perl.org . è¿ä¸ªå°åä¸è½ç¨æ¥æé®é¢ï¼å®åªç¨æ¥ä¿®æ£å½åç FAQ ã妿æé®é¢é£ä¹æéå°æ°é»ç» comp.lang.perl.miscãå¯ä»¥å¨ http://cvs.perl.org/cvsweb/perlfaq/ æ¥çæºç æ (宿¯å¨ä¸»æºç æ ä¹å¤)ã CVS ä»åºè®°å½äºå¯¹ FAQ çæææ¹åã
What will happen if you mail your Perl programming problems to the authors 妿æç¼ç¨é®é¢å¯ç»ä½èæä¹æ ·ï¼
ä½è大æ¦ä¸ä¼ç伿¨ææçé®é¢ï¼é¤éæ¨æ¯å¨å»ºè®®æä¸äºæ°é®é¢å è¿ FAQå»ï¼ä½å¦ææ¯è¿æ ·çè¯è¿äºé®é¢å½å就该å¯å° perlfaq-workers@perl.com 夿坹ã
æ¨åºè¯¥å·²ç»é读äºè¿ä»½ FAQ ç第äºé¨åï¼æ¨åºè¯¥ç¥é comp.lang.perl.misc ææ¯å¯»æ±å费建议çéå½å°æ¹ã妿æ¨çé®é¢ççå¾éè¦è䏿¨æ¥çè¦å¾å°æ£ç¡®è§£ç- ï¼é£ä¹æ¨è¯¥è¯·ä¸ä¸ªé¡¾é®ã
Credits è´è°¢
æåç perlfaq ç± Tom Christiansen å®æï¼æ¥çå¨ Tom å Nathan Torkington çåä½ä¸å¾ä»¥æ©å±ãå½åçææ¡£ç± perlfaq-workers (perlfaq-workers@perl.org) è¿è¡ç»´æ¤ï¼å¾å¤äººè´¡ç®äºè§£çï¼æ´æ£åè¯æ³¨ã
Author and Copyright Information
Copyright (c) 1997-2003 Tom Christiansen, Nathan Torkington, and other contributors noted in the answers.
All rights reserved.
Bundled Distributions
This documentation is free; you can redistribute it and/or modify it under the same terms as Perl itself.
Irrespective of its distribution, all code examples in these files are hereby placed into the public domain. You are permitted and encouraged to use this code in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit would be courteous but is not required.
Disclaimer
This information is offered in good faith and in the hope that it may be of use, but is not guaranteed to be correct, up to date, or suitable for any particular purpose whatsoever. The authors accept no liability in respect of this information or its use.
Table of Contents ç®å½
perlfaq -
æ¬ææ¡£
perlfaq1 - æå³ Perl
çä¸è¬é®é¢
perlfaq2 -
è·ååå¦ä¹
Perl
perlfaq3 -
ç¼ç¨å·¥å·
perlfaq4 - æ°æ®æä½
perlfaq5 -
æä»¶åæ ¼å¼
perlfaq6 -
æ£å表达å¼
perlfaq7 -
综åçé®é¢
perlfaq8 -
ç³»ç»äº¤äº
perlfaq9 - ç½ç»
The Questions é®é¢
perlfaq1: æå³ Perl çä¸è¬é®é¢
æå³ Perl çä¸è¬çï¼éææ¯å±æ¬¡çé®é¢
|
• |
ä»ä¹æ¯ Perl? | ||
|
• |
è°å¯¹ Perl æä¾æ¯æï¼è°å¼åäºå®ï¼ä¸ºä»ä¹å®æ¯èªç±çï¼ | ||
|
• |
æè¯¥ç¨åªä¸ä¸ªçæ¬ç Perlï¼ | ||
|
• |
perl4 å perl5 å代表ä»ä¹ï¼ | ||
|
• |
perl6 æ¯ä»ä¹? | ||
|
• |
Perlçåå±å·²ç¨³å®äºåï¼ | ||
|
• |
Perlé¾å¦åï¼ | ||
|
• |
Perlåå¶ä»çç¨è®¾è¯è¨æ¯èµ·æ¥å¦ä½ï¼ä¾å¦ Java, Python, REXX , Scheme,æ Tclï¼ | ||
|
• |
æå¯ä»¥ç¨ Perlæ¥åãæç§å·®äºãåï¼ | ||
|
• |
åªäºåºåä¸ä¸éåç¨ Perlï¼ | ||
|
• |
ãperlãåãPerlãæä»ä¹ä¸åï¼ | ||
|
• |
Perlç¨å¼åºç®æ¯ programè¿æ¯ scriptï¼ | ||
|
• |
JAPH æ¯ä»ä¹ï¼ | ||
|
• |
å°åªå¿å¯æ¿å° Larry Wall çæºæ§è®½è¯ (witticisms)ï¼ | ||
|
• |
æè¦å¦ä½åä¿¡ã说ææçç³»ç»ç®¡çèï¼ä¸å¸ï¼å±ä¸ä½¿ç¨ç¬¬ 5/5.8.3 çç Perlï¼èä¸å»ç¨å¶ä»çè¯è¨ï¼ |
perlfaq2: è·ååå¦ä¹ Perl
ä»åªéå¯»æ¾ Perl çæºç¨åºåææ¡£ï¼æ¯æä»¥åç¸å³äºé¡¹
|
• |
åªäºå¹³å°ä¸æ Perlï¼è¦å°åªé廿¾ï¼ | ||
|
• |
è¦å¦ä½åå¾ä»¥äºè¿å¶å½¢å¼åè¡ç Perlï¼ | ||
|
• |
æçç³»ç»é没æ Cç¼è¯å¨ãè¦å¦ä½ç¼è¯ perlï¼ | ||
|
• |
æç´æ¥å° Perlçæ§è¡æ¡£ä»ä¸å°æºå¨ä¸å¤å¶å°å¦ä¸å°æºå¨ä¸ï¼ä½æ¯ç¨å¼è·ä¸èµ·æ¥ã | ||
|
• |
ææåäºåå§ç ï¼è¯çç¼è¯ perlï¼ä½æ¯ gdbm/dynamic loading/malloc/linking/...é¨å失败ãè¦å¦ä½å°å®æå®ï¼ | ||
|
• |
Perlæåªäºæ¨¡ç»åå»¶ä¼¸ï¼ CPANæ¯ä»ä¹ï¼ CPAN/src/...å代表ä»ä¹ï¼ | ||
|
• |
æ¯ä¸æ¯æä¸ä¸ªç» ISOãå½éæ åå±ãæ ANSIãç¾å½å½å®¶æ åå±ã认å¯ç Perlçæ¬ï¼ | ||
|
• |
Perlçç¸å³èµæè¦ä¸åªå¿æ¾ï¼ | ||
|
• |
USENET䏿åªäºä¸é¨è®¨è®º Perlçæ°é»è®¨è®ºç¾¤ï¼é®é¢è¯¥æå°åªéï¼ | ||
|
• |
å¦æææ³æç¨å¼åå§ç ï¼è¯¥æå°åªä¸ªæ¿åä¸ï¼ | ||
|
• |
Perl ä¹¦ç± | ||
|
• |
å Perl æå³çæå¿ | ||
|
• |
ç½è·¯ä¸ç Perlï¼æ¥è§¦ FTP å WWW | ||
|
• |
æåªäºè®¨è®º Perl çé®ä»¶åè¡¨ï¼ | ||
|
• |
comp.lang.perl.misc çæ¡£æ¡åº | ||
|
• |
å¦ä½è´ä¹°åä¸çæ¬ç Perlï¼ | ||
|
• |
妿åç° bugsè¦åä½å¤æ¥åï¼ | ||
|
• |
ä»ä¹æ¯ perl.com? Perl Mongers? pm.org? perl.org? cpan.org? |
perlfaq3: ç¼ç¨å·¥å·
ç¼ç¨å·¥å·åç¼ç¨æ¯æ
|
• |
æå¦ä½ä½ (ä»»ä½äº)? | ||
|
• |
å¦ä½ä»¥äº¤äºçæ¹å¼ä½¿ç¨ Perl? | ||
|
• |
æ Perl shellå? | ||
|
• |
ææ ·æ¥æ¾æçç³»ç»ä¸å®è£äºåªäºæ¨¡å | ||
|
• |
å¦ä½æ¿æç Perl ç¨å¼é¤è«? | ||
|
• |
å¦ä½æ£æµ (profile) æç perl ç¨å¼? | ||
|
• |
å¦ä½æ¿æç Perlç¨å¼ä½äº¤ååè (cross-reference)? | ||
|
• |
æ Perlä¸ç¨çç¾ååå°ç¨å¼ (pretty-printer)å? | ||
|
• |
æ Perlç ctags å? | ||
|
• |
ææ²¡æä¸ä¸ª IDE æå¾å½¢çé¢ç Perl ç¼è¾å¨ï¼ | ||
|
• |
åªå¿æ vi ç¨ç Perl å®ï¼ | ||
|
• |
ç» emacsç¨ç perl模å¼åè¦å»åªæå¢? | ||
|
• |
å¦ä½å¨ Perléä½¿ç¨ curses? | ||
|
• |
Xæ Tkå¦ä½ä¸ Perléåå¢? | ||
|
• |
å¦ä½ä¸é CGIæ Tk 帮å©ä½åºç®åçç®å½ï¼éåï¼? | ||
|
• |
å¦ä½è®©æç Perlç¨å¼è·å¾æ´å¿«äº? | ||
|
• |
å¦ä½è®©æç Perl ç¨åºå°ç¨ä¸äºååï¼ | ||
|
• |
æå±é¨åéçå¼ç¨è¿åæ¯ä¸å®å¨çåæ³å? | ||
|
• |
æå¦ä½éæ¾ä¸ä¸ªæ°ç»ææ£åä»¥ç¼©å°æçç¨å¼å°ºå¯¸? | ||
|
• |
å¦ä½è®©æç CGIèæ¬ (script)æ§è¡èµ·æ¥æ´ææç? | ||
|
• |
å¦ä½éè Perlç¨å¼çåå§ç ? | ||
|
• |
å¦ä½ææç Perlç¨å¼ç ç¼è¯æ byte codeæ C? | ||
|
• |
ææ ·æ Perl ç¼è¯æ Java? | ||
|
• |
å¦ä½æè½è®© "#!perl" å¨ [ MS-DOS ,NT,...] ä¸èµ·ä½ç¨? | ||
|
• |
æè½å©ç¨å½ä»¤è¡ååºæç¨çç¨å¼å? | ||
|
• |
为ä½ä¸è¡ç perl ç¨å¼æ æ³å¨æç DOS/Mac/VMSç³»ç»ä¸è¿ä½? | ||
|
• |
æå¾å»åªéå¦ Perlç CGIææ¯ Webç¨å¼è®¾è®¡å¢? | ||
|
• |
ä»åªéå¯ä»¥å¦ä¹ é¢å对象ç Perl ç¼ç¨ï¼ | ||
|
• |
ä»åªéå¯ä»¥å¦ä¹ å° Perl ä¸ C è¿æ¥ï¼[h2xs, xsubpp] | ||
|
• |
æå·²ç»éè¯»äº perlembed,perlguts ççï¼ä½æ¯è¿æ¯ä¸è½å¨æç C ç¨åºä¸åµå¥ perlï¼æä½éäºä»ä¹ï¼ | ||
|
• |
æè¯çè¿è¡æçèæ¬æ¶ï¼çå°äºè¿æ ·çæ¶æ¯ã宿¯ä»ä¹ææï¼ | ||
|
• |
ä»ä¹æ¯ MakeMaker? |
perlfaq4: æ°æ®æä½
æçºµæ°åï¼æ¥æï¼åç¬¦ä¸²ï¼æ°ç»ï¼æ£å以ååç§å¶ä»æ°æ®ç±»åã
|
• |
Why am I getting long decimals (eg, 19.9499999999999) instead of the numbers I should be getting (eg, 19.95)? | ||
|
• |
Why isn’t my octal data interpreted correctly? | ||
|
• |
Does Perl have a round() function? What about ceil() and floor()? Trig functions? | ||
|
• |
How do I convert between numeric representations? | ||
|
• |
Why doesn’t & work the way I want it to? | ||
|
• |
How do I multiply matrices? | ||
|
• |
How do I perform an operation on a series of integers? | ||
|
• |
How can I output Roman numerals? | ||
|
• |
Why aren’t my random numbers random? | ||
|
• |
How do I get a random number between X and Y? | ||
|
• |
How do I find the day or week of the year? | ||
|
• |
How do I find the current century or millennium? | ||
|
• |
How can I compare two dates and find the difference? | ||
|
• |
How can I take a string and turn it into epoch seconds? | ||
|
• |
How can I find the Julian Day? | ||
|
• |
How do I find yesterday’s date? | ||
|
• |
Does Perl have a Year 2000 problem? Is Perl Y2K compliant? | ||
|
• |
How do I validate input? | ||
|
• |
How do I unescape a string? | ||
|
• |
How do I remove consecutive pairs of characters? | ||
|
• |
How do I expand function calls in a string? | ||
|
• |
How do I find matching/nesting anything? | ||
|
• |
How do I reverse a string? | ||
|
• |
How do I expand tabs in a string? | ||
|
• |
How do I reformat a paragraph? | ||
|
• |
How can I access or change N characters of a string? | ||
|
• |
How do I change the Nth occurrence of something? | ||
|
• |
How can I count the number of occurrences of a substring within a string? | ||
|
• |
How do I capitalize all the words on one line? | ||
|
• |
How can I split a [character] delimited string except when inside [character]? | ||
|
• |
How do I strip blank space from the beginning/end of a string? | ||
|
• |
How do I pad a string with blanks or pad a number with zeroes? | ||
|
• |
How do I extract selected columns from a string? | ||
|
• |
How do I find the soundex value of a string? | ||
|
• |
How can I expand variables in text strings? | ||
|
• |
What’s wrong with always quoting "$vars"? | ||
|
• |
Why don’t my << HERE documents work? | ||
|
• |
What is the difference between a list and an array? | ||
|
• |
What is the difference between $array[1] and @array[1]? | ||
|
• |
How can I remove duplicate elements from a list or array? | ||
|
• |
How can I tell whether a certain element is contained in a list or array? | ||
|
• |
How do I compute the difference of two arrays? How do I compute the intersection of two arrays? | ||
|
• |
How do I test whether two arrays or hashes are equal? | ||
|
• |
How do I find the first array element for which a condition is true? | ||
|
• |
How do I handle linked lists? | ||
|
• |
How do I handle circular lists? | ||
|
• |
How do I shuffle an array randomly? | ||
|
• |
How do I process/modify each element of an array? | ||
|
• |
How do I select a random element from an array? | ||
|
• |
How do I permute N elements of a list? | ||
|
• |
How do I sort an array by (anything)? | ||
|
• |
How do I manipulate arrays of bits? | ||
|
• |
Why does defined() return true on empty arrays and hashes? | ||
|
• |
How do I process an entire hash? | ||
|
• |
What happens if I add or remove keys from a hash while iterating over it? | ||
|
• |
How do I look up a hash element by value? | ||
|
• |
How can I know how many entries are in a hash? | ||
|
• |
How do I sort a hash (optionally by value instead of key)? | ||
|
• |
How can I always keep my hash sorted? | ||
|
• |
What’s the difference between "delete" and "undef" with hashes? | ||
|
• |
Why don’t my tied hashes make the defined/exists distinction? | ||
|
• |
How do I reset an each() operation part-way through? | ||
|
• |
How can I get the unique keys from two hashes? | ||
|
• |
How can I store a multidimensional array in a DBM file? | ||
|
• |
How can I make my hash remember the order I put elements into it? | ||
|
• |
Why does passing a subroutine an undefined element in a hash create it? | ||
|
• |
How can I make the Perl equivalent of a C structure/C ++ class/hash or array of hashes or arrays? | ||
|
• |
How can I use a reference as a hash key? | ||
|
• |
How do I handle binary data correctly? | ||
|
• |
How do I determine whether a scalar is a number/whole/integer/float? | ||
|
• |
How do I keep persistent data across program calls? | ||
|
• |
How do I print out or copy a recursive data structure? | ||
|
• |
How do I define methods for every class/object? | ||
|
• |
How do I verify a credit card checksum? | ||
|
• |
How do I pack arrays of doubles or floats for XS code? |
perlfaq5: æä»¶åæ ¼å¼
I/O and the "f" issues: filehandles, flushing, formats, and footers.
|
• |
How do I flush/unbuffer an output filehandle? Why must I do this? | ||
|
• |
How do I change one line in a file/delete a line in a file/insert a line in the middle of a file/append to the beginning of a file? | ||
|
• |
How do I count the number of lines in a file? | ||
|
• |
How can I use Perl’s "-i" option from within a program? | ||
|
• |
How do I make a temporary file name? | ||
|
• |
How can I manipulate fixed-record-length files? | ||
|
• |
How can I make a filehandle local to a subroutine? How do I pass filehandles between subroutines? How do I make an array of filehandles? | ||
|
• |
How can I use a filehandle indirectly? | ||
|
• |
How can I set up a footer format to be used with write()? | ||
|
• |
How can I write() into a string? | ||
|
• |
How can I output my numbers with commas added? | ||
|
• |
How can I translate tildes (˜) in a filename? | ||
|
• |
How come when I open a file read-write it wipes it out? | ||
|
• |
Why do I sometimes get an "Argument list too long" when I use <*>? | ||
|
• |
Is there a leak/bug in glob()? | ||
|
• |
How can I open a file with a leading ">" or trailing blanks? | ||
|
• |
How can I reliably rename a file? | ||
|
• |
How can I lock a file? | ||
|
• |
Why can’t I just open( FH , ">file.lock")? | ||
|
• |
I still don’t get locking. I just want to increment the number in the file. How can I do this? | ||
|
• |
All I want to do is append a small amount of text to the end of a file. Do I still have to use locking? | ||
|
• |
How do I randomly update a binary file? | ||
|
• |
How do I get a file’s timestamp in perl? | ||
|
• |
How do I set a file’s timestamp in perl? | ||
|
• |
How do I print to more than one file at once? | ||
|
• |
How can I read in an entire file all at once? | ||
|
• |
How can I read in a file by paragraphs? | ||
|
• |
How can I read a single character from a file? From the keyboard? | ||
|
• |
How can I tell whether there’s a character waiting on a filehandle? | ||
|
• |
How do I do a "tail -f" in perl? | ||
|
• |
How do I dup() a filehandle in Perl? | ||
|
• |
How do I close a file descriptor by number? | ||
|
• |
Why can’t I use "C:\temp\foo" in DOS paths? What doesn’t ‘C:\temp\foo.exe‘ work? | ||
|
• |
Why doesn’t glob("*.*") get all the files? | ||
|
• |
Why does Perl let me delete read-only files? Why does "-i" clobber protected files? Isn’t this a bug in Perl? | ||
|
• |
How do I select a random line from a file? | ||
|
• |
Why do I get weird spaces when I print an array of lines? |
perlfaq6: æ£å表达å¼
模å¼å¹é忣å表达å¼ã
|
• |
æè¯¥å¦ä½ä½¿ç¨æ£è§è¡¨ç¤ºå¼æä¸è³äºååºä¸åè¯æ³ä¸é¾ä»¥ç»´æ¤çç¨å¼ç ? | ||
|
• |
ææ æ³å¹éè¶è¿ä¸è¡çå容ï¼åªéåºäºé®é¢? | ||
|
• |
æå¦ä½ååºä½äºä¸åè¡ç两个模å¼é´ä¹å容? | ||
|
• |
ææä¸ä¸ªæ£è§è¡¨ç¤ºå¼æ¾å¥ $/ä½å´æ²¡æç¨ãéå¨åªé? | ||
|
• |
å¦ä½å¨ LHS端ãè¯æ³¨ï¼å¼åä¸- è¿ç®å左端é¨ä»½ãä½ä¸åºå«å¤§å°åå¼çæ¿æ¢ï¼ä½å¨ RHS端ãå³ç«¯ãä¿ç大å°ååºå«? | ||
|
• |
å¦ä½ä½¿ "\w" 对åºå°ééé³è®°å· (accented)çåå? | ||
|
• |
å¦ä½ä½ä¸ä¸ªéåä¸å localeãè¯æ³¨ï¼è¯è¨ç¯å¢ï¼å½å®¶å°åºå¨æå- ç¼ç ä¸åèªçæ¯ä¾ãç "/[a-zA-Z]/" 对åº? | ||
|
• |
å¨ä¸ä¸ªæ£è§è¡¨ç¤ºå¼éå¦ä½å¼å¥ (quote) åé? | ||
|
• |
"/o" å°åºæ¯å¹²ä¹ç¨ç? | ||
|
• |
å¦ä½ä½¿ç¨æ£è§è¡¨ç¤ºå¼å°æ¡£æ¡ä¸ Cè¯è¨æ ·å¼çæ³¨è§£å æ? | ||
|
• |
æè½ç¨ Perlçæ£è§è¡¨ç¤ºå¼å»å¯¹åºæå¯¹ç符å·å? | ||
|
• |
æäººè¯´æ£è§è¡¨ç¤ºå¼å¾è´ªå©ªï¼é£æ¯ä»ä¹ææ?该å¦ä½é¿å宿另æ¥çé®é¢? | ||
|
• |
å¦ä½å¤çæ¯ä¸è¡çæ¯ä¸ªå? | ||
|
• |
æå¦ä½å°åºæååºç°é¢çæè¡åºç°é¢çç纲è¦? | ||
|
• |
å¦ä½è½ä½è¿ä¼¼å¯¹åº? | ||
|
• |
æå¦ä½ææçå°ä¸æ¬¡å¯¹åºå¤ä¸ªæ£è§è¡¨ç¤ºå¼? | ||
|
• |
ä¸ºä½æç¨ "\b" ä½åçæå¯»æ¶ä¼å¤±è´¥å¢? | ||
|
• |
为ä»ä¹æ¯å½æç¨ $&, $‘,æ $’æ¶ç¨å¼çé度就æ¢ä¸æ¥äºå¢? | ||
|
• |
æ£è§è¡¨ç¤ºå¼ä¸ç "\G" è½ç»æä»ä¹å¥½å¤? | ||
|
• |
Perlæ£è§è¡¨ç¤ºå¼ææ¯ DFA æ NFA?å®ä»¬æ¯ POSIX ç¸å®¹çå? | ||
|
• |
卿 è¿åå¼ä¸ä¸æä¸ç¨ grepæ mapæä»ä¹ä¸å¯¹? | ||
|
• |
å¦ä½å¯¹åºå¤ä½åç»åæ¯æææçå串? | ||
|
• |
å¦ä½å¹éç¨æ·æä¾ç模å¼ï¼ |
perlfaq7: 综åçé®é¢
综åç Perl è¯è¨é®é¢ï¼ä¸éäºå¨å¶ä»æææ®µè½ä¸è®¨è®ºçé®é¢
|
• |
æè½æ¿å° Perlç BNF/yacc/REåï¼ | ||
|
• |
$@%*è¿äºç¬¦å·æ¯ä»ä¹ææï¼ææä¹ç¥é使¶è¯¥ä½¿ç¨ä»ä»¬å¢ï¼ | ||
|
• |
å串å å¼å·æä½¿ç¨åå·åéå·æ¯å¦ç»å¯¹å¿è¦/è¿æ¯å®å¨æ²¡å¿è¦ï¼ | ||
|
• |
æå¦ä½è·³è¿ä¸äºä¼ åå¼ï¼ | ||
|
• |
æå¦ä½ææ¶æ»¤æè¦å讯æ¯ï¼ | ||
|
• |
ä»ä¹æ¯ä¸ä¸ªæ©å (extension)ï¼ | ||
|
• |
ä¸ºä½ Perlè¿ç®åçä¼å顺åºå Cçä¸ä¸æ ·ï¼ | ||
|
• |
æå¦ä½å£°æ/å建ä¸ä¸ªæ°æ®ç»æï¼ | ||
|
• |
å¦ä½å建ä¸ä¸ªæ¨¡åï¼ | ||
|
• |
å¦ä½å建ä¸ä¸ªç±»ï¼ | ||
|
• |
å¦ä½ç¥éä¸ä¸ªå鿝妿¯æ±¡æçï¼ | ||
|
• |
ä»ä¹æ¯éåï¼ | ||
|
• |
ä»ä¹æ¯åéèªæï¼æåºè¯¥ææ ·é²æ¢å®ï¼ | ||
|
• |
å¦ä½ä¼ é/è¿åä¸ä¸ª{彿° Function, æä»¶å¥æ FileHandle, æ°ç» Array, æ£å Hash, æ¹æ³ Method, æ£åè¡¨è¾¾å¼ Regex}? | ||
|
• |
å¦ä½å建ä¸ä¸ªéæåéï¼ | ||
|
• |
卿åéæä½ç¨åæä»ä¹åºå«ï¼local() å my() å¢? | ||
|
• |
å¨åå¨åååé¨åéçä½ç¨åä¸ï¼å¦ä½ååä¸ä¸ªå¨æåéï¼ | ||
|
• |
æ·±è¿æ¥åæµè¿æ¥æä»ä¹ä¸åï¼ | ||
|
• |
为ä»ä¹ "my($foo) = < FILE >;" ä¸å·¥ä½ï¼ | ||
|
• |
å¦ä½éå®ä¹ä¸ä¸ªåå»ºå½æ°ï¼æä½ç¬¦ æèæ¹æ³ï¼ | ||
|
• |
è°ç¨å½æ°æ¶ &foo å foo() ç形弿ä»ä¹ä¸å? | ||
|
• |
å¦ä½å建ä¸ä¸ªåæ¯è¯å¥ï¼ | ||
|
• |
å¦ä½æè·å¯¹æªå®ä¹åéï¼å½æ°ææ¹æ³ç访é®ï¼ | ||
|
• |
为ä»ä¹æ¾ä¸å°åå«å¨åä¸ä¸ªæä»¶ä¸çæ¹æ³ï¼ | ||
|
• |
å¦ä½æ¾å°å½åçåï¼ | ||
|
• |
å¦ä½æ³¨éæå¤§åç perl 代ç ï¼ | ||
|
• |
å¦ä½æ¸ç©ºä¸ä¸ªåï¼ | ||
|
• |
å¦ä½ä½¿ç¨åéå¼ä½ä¸ºä¸ä¸ªåéåï¼ | ||
|
• |
"bad interpreter" æ¯ä»ä¹ææ? |
perlfaq8: ç³»ç»äº¤äº
è¿ç¨é´éä¿¡ ( IPC ), ç¨æ·ç颿§å¶ (é®çï¼å±å¹åæç¹è®¾å¤)ã
|
• |
å¦ä½æ¾åºæ£å¨è¿è¡çæä½ç³»ç»ï¼ | ||
|
• |
为ä»ä¹ exec() ä¸è¿å? | ||
|
• |
å¦ä½å¯¹é®çï¼è¤å¹ï¼æ»é¼ åäºè±æ ·ï¼ | ||
|
• |
å¦ä½æå°æé¢è²çåå®¹ï¼ | ||
|
• |
å¦ä½åªè¯»åä¸ä¸ªé®èä¸ç徿ä¸åè½¦ï¼ | ||
|
• |
å¦ä½æ£æµé®çä¸å·²æè¾å¥ï¼ | ||
|
• |
å¦ä½æ¸å±ï¼ | ||
|
• |
å¦ä½è·åå±å¹å¤§å°ï¼ | ||
|
• |
å¦ä½å使ç¨è询é®å¯ç ï¼ | ||
|
• |
å¦ä½è¯»å串å£ï¼ | ||
|
• |
å¦ä½è§£ç å å¯çå£ä»¤æä»¶ï¼ | ||
|
• |
å¦ä½å¨åå°å¼å¯è¿ç¨ï¼ | ||
|
• |
å¦ä½æªè·æ§å¶å符/ä¿¡å·ï¼ | ||
|
• |
å¨ Unix ç³»ç»ä¸å¦ä½ä¿®æ¹ shadow æä»¶ï¼ | ||
|
• |
å¦ä½è®¾ç½®æ¶é´åæ¥æï¼ | ||
|
• |
å¦ä½ sleep() æ alarm() å°äºä¸ç§çæ¶é´? | ||
|
• |
å¦ä½æµåº¦å°äºä¸ç§çæ¶é´ï¼ | ||
|
• |
å¦ä½å atexit()æ setjmp()/longjmp()çå¨ä½ï¼ï¼å¼å¸¸å¤çï¼ | ||
|
• |
ä¸ºä½æç socketsç¨å¼å¨ System V (Solaris)ç³»ç»ä¸ä¸è½ç¨ï¼ã䏿¯æçåè®®ãè¿ä¸ªé误讯æ¯åæ¯ä»ä¹ææï¼ | ||
|
• |
å¦ä½ä» Perléå¼å«ç³»ç»ä¸ç¬ç¹ç C彿°ï¼ | ||
|
• |
å¨åªéå¯ä»¥æ¾å¼å¥æ¡£æ¥å ioctl()æ syscall()ï¼ | ||
|
• |
ä¸ºä½ setuid perlç¨å¼ä¼æ±æ¨å³äºç³»ç»æ ¸å¿çé®é¢ï¼ | ||
|
• |
å¦ä½æå¼å¯¹æç¨å¼æ¢è¾å¥åè¾åºç管é (pipe)ï¼ | ||
|
• |
为ä½ç¨ system()å´å¾ä¸å°ä¸ä¸ªæä»¤çè¾åºå¢ï¼ | ||
|
• |
å¦ä½è¡¥æå¤é¨æä»¤ç STDERRï¼ | ||
|
• |
为ä½å½ç®¡éå¼å¯å¤±è´¥æ¶ open()ä¸ä¼ä¼ åé误讯æ¯ï¼ | ||
|
• |
å¨è¾åºå¼æ¯ç©ºçæå¢é使ç¨ååå¼å·æä½ä¸å¯¹ï¼ | ||
|
• |
å¦ä½ä¸ç»è¿ shellå¤çæ¥å¼å«ååå¼å·ï¼ | ||
|
• |
为ä½ç»äº EOFï¼Unix䏿¯ ˆDï¼MS-DOS䏿¯ ˆZï¼åæçç¨å¼å°±ä¸è½ä» STDIN读åä¸è¥¿äºå¢ï¼ | ||
|
• |
å¦ä½æ shellç¨å¼è½¬æ perlï¼ | ||
|
• |
perlè½å¤ç telnetæ ftp ä¼è¯åï¼ | ||
|
• |
å¦ä½å¨ Perléè¾¾å° Expectçåè½ï¼ | ||
|
• |
ææ²¡æå¯è½å° perlçæä»¤åéèèµ·æ¥ï¼ä»¥èº²é¿å "ps"ä¹ç±»çç¨å¼ï¼ | ||
|
• |
æå¨ perl scripté {æ´å¨ç®å½ï¼æ´æ¹æç使ç¨ç¯å¢}ã为ä½è¿äºæ¹åå¨ç¨å¼æ§è¡å®åå°±æ¶å¤±äºå¢ï¼å¦ä½è®©æåçä¿®æ¹æ¾é²åºæ¥ï¼ | ||
|
• |
å¦ä½å³éä¸ä¸ªç¨åºçæä»¶å¥æèä¸ç¨çå®å®æå¢ï¼ | ||
|
• |
å¦ä½ fork ä¸ä¸ªå®æ¤è¿ç¨ï¼ | ||
|
• |
å¦ä½ç¥éèªå·±æ¯å¦å¨äº¤äºå°è¿è¡ï¼ | ||
|
• |
å¦ä½ä¸ºç¼æ¢çäºä»¶è®¾ç½®è¶æ¶ï¼ | ||
|
• |
å¦ä½è®¾ç½® CPU éé¢? | ||
|
• |
å¦ä½é¿åå¨ Unix ç³»ç»ä¸äº§çåµå°¸è¿ç¨ï¼ | ||
|
• |
å¦ä½ä½¿ç¨ SQL æ°æ®åº? | ||
|
• |
å¦ä½ä½¿ system() 卿¶å° control-C æ¶éåº? | ||
|
• |
å¦ä½æ é»å¡å°æå¼ä¸ä¸ªæä»¶ï¼ | ||
|
• |
å¦ä½ä» CPAN å®è£æ¨¡å? | ||
|
• |
require å use çåºå«æ¯ä»ä¹ï¼ | ||
|
• |
å¦ä½è®¾ç½®æèªå·±ç模å/åºè·¯å¾ï¼ | ||
|
• |
å¦ä½å°æèªå·±çç¨åºçè·¯å¾å å¥å°æ¨¡å/åºæç´¢è·¯å¾ä¸ï¼ | ||
|
• |
å¦ä½å¨è¿è¡æ¶å°ä¸ä¸ªç®å½å å¥å°æç include è·¯å¾ä¸ï¼ | ||
|
• |
ä»ä¹æ¯ socket.phï¼ä»åªå¿å¯ä»¥å¾å°å®ï¼ |
perlfaq9: ç½ç»
ç½ç»éä¿¡ï¼äºèç½ä»¥åå°éæå³ web çå容
|
• |
ä¸ä¸ª CGI èæ¬çååºçæ£ç¡®æ ¼å¼æ¯ä»ä¹ï¼ | ||
|
• |
æç CGI èæ¬ä»å½ä»¤è¡æ§è¡æ£å¸¸ï¼ä½æ¯å¨æµè§å¨ä¸ä¸è¡ (500 Server Error)ã | ||
|
• |
å¦ä½ä» CGI ç¨åºä¸å¾å°å¥½ä¸ç¹çé误æç¤ºï¼ | ||
|
• |
å¦ä½å°å符串ä¸ç HTML å é¤ï¼ | ||
|
• |
å¦ä½å±å¼ URL? | ||
|
• |
å¦ä½ä»ç¨æ·çæºå¨ä¸ä¸è½½æä»¶ï¼å¦ä½æå¼å¶ä»æºå¨ä¸çæä»¶ï¼ | ||
|
• |
å¦ä½å¨ HTML æ·»å ä¸ä¸ªå¼¹åºèå? | ||
|
• |
å¦ä½è·å HTML æä»¶? | ||
|
• |
å¦ä½æ ¹æ®æäº¤çå容èªå¨çæä¸ä¸ª HTML ? | ||
|
• |
å¦ä½è§£ç æå建 web ä¸ç %-encoding? | ||
|
• |
å¦ä½éå®åå°å¶ä»é¡µé¢ï¼ | ||
|
• |
å¦ä½ä¸ºæçç½é¡µå ä¸å¯ç ï¼ | ||
|
• |
å¦ä½ç¨ Perl ä¿®æ¹æç .htpasswd å .htgroup æä»¶? | ||
|
• |
å¦ä½ç¡®ä¿ç¨æ·ä¸ä¼å¨è¡¨åä¸è¾å¥ä½¿æç CGI èæ¬ä½åäºçå¼ï¼ | ||
|
• |
å¦ä½è§£éä¸ä¸ªé®ä»¶å¤´ï¼ | ||
|
• |
å¦ä½è§£ç ä¸ä¸ª CGI 表åï¼ | ||
|
• |
å¦ä½æ£æµä¸ä¸ªææçé®ä»¶å°åï¼ | ||
|
• |
å¦ä½è§£ç ä¸ä¸ª MIME/BASE64 å符串? | ||
|
• |
å¦ä½è¿åç¨æ·çé®ä»¶å°åï¼ | ||
|
• |
å¦ä½åé®ä»¶ï¼ | ||
|
• |
å¦ä½ä½¿ç¨ MIME æ¥ä¸ºé®ä»¶æ¶æ¯å¢å éä»¶ï¼ | ||
|
• |
å¦ä½è¯»é®ä»¶ï¼ | ||
|
• |
å¦ä½æ¾å°æç主æºå/åå/IP å°åï¼ | ||
|
• |
å¦ä½è·åä¸ç¯æ°é»æç« ææ´»å¨çæ°é»ç»ï¼ | ||
|
• |
å¦ä½è·å/ä¸ä¼ ä¸ä¸ª FTP æä»¶? | ||
|
• |
å¦ä½è¿è¡è¿ç¨è¿ç¨è°ç¨ RPC ? |
è¯è
è§ç¾é¾ï¼ä¸¤åªèèå·¥ä½å®¤ï¼bbbush
è·
æ¬é¡µé¢ä¸æçç±ä¸æ
man
æå页计åæä¾ã
䏿 man
æå页计åï¼https://github.com/man-pages-zh/manpages-zh