diff options
Diffstat (limited to 'Master/tlpkg/tlperl/lib/pods/perlfaq8.pod')
-rw-r--r-- | Master/tlpkg/tlperl/lib/pods/perlfaq8.pod | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/Master/tlpkg/tlperl/lib/pods/perlfaq8.pod b/Master/tlpkg/tlperl/lib/pods/perlfaq8.pod index 08a5b038b45..b64e8d038b7 100644 --- a/Master/tlpkg/tlperl/lib/pods/perlfaq8.pod +++ b/Master/tlpkg/tlperl/lib/pods/perlfaq8.pod @@ -289,7 +289,7 @@ L<perlfunc/"sysopen"> for more on this approach. Some devices will be expecting a "\r" at the end of each line rather than a "\n". In some ports of perl, "\r" and "\n" are different from -their usual (Unix) ASCII values of "\012" and "\015". You may have to +their usual (Unix) ASCII values of "\015" and "\012". You may have to give the numeric values you want directly, using octal ("\015"), hex ("0x0D"), or as a control-character specification ("\cM"). @@ -524,7 +524,7 @@ L<perlfunc/syscall>. =head2 How can I do an atexit() or setjmp()/longjmp()? (Exception handling) You can use the C<END> block to simulate C<atexit()>. Each package's -C<END> block is called when the program or thread ends See L<perlmod> +C<END> block is called when the program or thread ends. See the L<perlmod> manpage for more details about C<END> blocks. For example, you can use this to make sure your filter program managed @@ -545,7 +545,7 @@ details of this, see the section on signals, especially the time-out handler for a blocking C<flock()> in L<perlipc/"Signals"> or the section on "Signals" in I<Programming Perl>. -If exception handling is all you're interested in, use one of the +If exception handling is all you're interested in, use one of the many CPAN modules that handle exceptions, such as C<Try::Tiny>. If you want the C<atexit()> syntax (and an C<rmexit()> as well), try the @@ -860,7 +860,7 @@ list. Further examples of this can be found in L<perlipc/"Safe Pipe Opens">. Note that if you're using Windows, no solution to this vexing issue is -even possible. Even if Perl were to emulate C<fork()>, you'd still be +even possible. Even though Perl emulates C<fork()>, you'll still be stuck, because Windows does not have an argc/argv-style API. =head2 Why can't my script read from STDIN after I gave it EOF (^D on Unix, ^Z on MS-DOS)? @@ -933,7 +933,7 @@ approach will suffice: =head2 How can I write expect in Perl? -Once upon a time, there was a library called L<chat2.pl> (part of the +Once upon a time, there was a library called F<chat2.pl> (part of the standard perl distribution), which never really got finished. If you find it somewhere, I<don't use it>. These days, your best bet is to look at the Expect module available from CPAN, which also requires two @@ -1192,7 +1192,7 @@ might not be perl's message. (contributed by brian d foy) The easiest way is to have a module also named CPAN do it for you by using -the C<cpan> command the comes with Perl. You can give it a list of modules +the C<cpan> command that comes with Perl. You can give it a list of modules to install: $ cpan IO::Interactive Getopt::Whatever @@ -1263,7 +1263,7 @@ See the entry for C<use> in L<perlfunc> for more details. =head2 How do I keep my own module/library directory? -When you build modules, tell Perl where to install the modules. +When you build modules, tell Perl where to install the modules. If you want to install modules for your own use, the easiest way might be C<local::lib>, which you can download from CPAN. It sets various @@ -1302,11 +1302,11 @@ include path (@INC) at runtime?> for details on how to run your newly installed modules. There is one caveat with INSTALL_BASE, though, since it acts -differently than the PREFIX and LIB settings that older versions of +differently from the PREFIX and LIB settings that older versions of C<ExtUtils::MakeMaker> advocated. INSTALL_BASE does not support installing modules for multiple versions of Perl or different -architectures under the same directory. You should consider if you -really want that , and if you do, use the older PREFIX and LIB +architectures under the same directory. You should consider whether you +really want that and, if you do, use the older PREFIX and LIB settings. See the C<ExtUtils::Makemaker> documentation for more details. =head2 How do I add the directory my program lives in to the module/library search path? @@ -1349,9 +1349,9 @@ directory of the currently running script and puts it in C<$Bin>, which you can then use to construct the right library path: use FindBin qw($Bin); - + You can also use C<local::lib> to do much of the same thing. Install -modules using C<local::lib>'s settings then use the module in your +modules using C<local::lib>'s settings then use the module in your program: use local::lib; # sets up a local lib at ~/perl5 @@ -1386,13 +1386,13 @@ environment variables, run-time switches, and in-code statements: =item the C<local::lib> module: use local::lib; - + use local::lib "~/myown_perllib"; - + =back -The last is particularly useful because it knows about machine -dependent architectures. The C<lib.pm> pragmatic module was first +The last is particularly useful because it knows about machine-dependent +architectures. The C<lib.pm> pragmatic module was first included with the 5.002 release of Perl. =head2 What is socket.ph and where do I get it? |