Initially intended to use Perldoc to look at the Apache2::request module, the results of the following error occurred at run time:
Copy Code code as follows:
Error in Tempfile () using/tmp/xxxxxxxxxx:parent directory (./) is
Not writable at/usr/lib/perl5/5.8.8/pod/perldoc.pm line 1483.
Change to/tmp/to execute a command, or an error. It seems that and PWD is OK, with the permissions of/TMP itself ~ ~ (because I often do experiments in/tmp, may not know when inadvertently changed the permissions)
chmod 777/tmp
Then execute the order, OK ~ ~
After looking at Apache2::request Doc, did not find header related settings, decided to go directly to see the Apache of those PM, but before the CPAN was installed, but never tube where they are installed ...
/usr/five or six directories are Perl, it is not easy to find it ~ (remember the previous test, Perl script every execution, have a good hundreds of milliseconds to find out where the module in ... )
Temporarily lazy to Baidu a bit, very good, see CPAN FAQ, just have this method:
Copy Code code as follows:
Perl-mfile::find=find-mfile::spec::functions-tlwe ' Find {wanted => sub {print Canonpath $_ if/.pmz/}, No_chdir = > 1}, @INC '
Then grep Apache, see the results, are installed in the/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/apache2 this path. Go in and grep ' $r->header ' * and immediately see that it's in requestrec.pm.