I am trying to build a few perl rpms on different versions of redhat linux. The spec file contains commands that determine a few directories in /usr/lib/perl5:
perl -V:installvendorlib perl -V:installvendorarchI've observed that the above works on some versions only and returns a null string on others. I want to know how these variables are assigned values. Also, is there a simple perl one-liner that returns a list of all such configuration parameters - perhaps as a hash with key and value pairs?
perl's manpage mentions
-V:configvarsand nothing more that that. I also looked in the perlrun manpage but could not find anything useful.
Many thanks!
<Update:
I was looking at the Config module, and figure out I can get all the values I want using
use Config;
foreach (keys %Config) {
print "$_ => $Config{$_}\n";
}
For some reason, the installvendorlib variable is not defined on one machine. Is there a way to fix this other than recompiling and reinstalling perl ?
Thanks,
Linuxfan
In reply to Obtaining list of all -V configvars to perl command line by linuxfan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |