perlfaq - frequently asked questions about Perl |
perlfaq - frequently asked questions about Perl ($Date: 1999/05/23 20:38:02 $)
This document is structured into the following sections:
#!perl
to work on [MS-DOS,NT,...]?round()
function? What about ceil()
and floor()? Trig functions?defined()
return true on empty arrays and hashes?each()
operation part-way through?write()
into a string?tail -f
in perl?dup()
a filehandle in Perl?glob(``*.*'')
get all the files?-i
clobber protected files? Isn't this a bug in Perl?\w
match national character sets?/[a-zA-Z]/
?/o
really for?\b
work for me?\G
in a regular expression?local()
and my()?exec()
doesn't return?sleep()
or alarm()
for under a second?atexit()
or setjmp()/longjmp()? (Exception handling)ioctl()
or syscall()?open()
return an error when a pipe open fails?system()
exit on control-C?
This document is posted regularly to comp.lang.perl.announce and several other related newsgroups. It is available in a variety of formats from CPAN in the /CPAN/doc/FAQs/FAQ/ directory, or on the web at http://www.perl.com/perl/faq/ .
You may mail corrections, additions, and suggestions to perlfaq-suggestions@perl.com . This alias should not be used to ask FAQs. It's for fixing the current FAQ. Send questions to the comp.lang.perl.misc newsgroup.
Your questions will probably go unread, unless they're suggestions of new questions to add to the FAQ, in which case they should have gone to the perlfaq-suggestions@perl.com instead.
You should have read section 2 of this faq. There you would have learned that comp.lang.perl.misc is the appropriate place to go for free advice. If your question is really important and you require a prompt and correct answer, you should hire a consultant.
When I first began the Perl FAQ in the late 80s, I never realized it would have grown to over a hundred pages, nor that Perl would ever become so popular and widespread. This document could not have been written without the tremendous help provided by Larry Wall and the rest of the Perl Porters.
Copyright (c) 1997-1999 Tom Christiansen and Nathan Torkington. All rights reserved.
When included as part of the Standard Version of Perl, or as part of its complete documentation whether printed or otherwise, this work may be distributed only under the terms of Perl's Artistic License. Any distribution of this file or derivatives thereof outside of that package require that special arrangements be made with copyright holder.
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.
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.
Mentioned SIGPIPE and the perlipc manpage in the forking open answer in the perlfaq8 manpage.
Fixed description of a regular expression in the perlfaq4 manpage.
Added new question on Perl BNF on the perlfaq7 manpage.
perlfaq - frequently asked questions about Perl |