Is there something like <?php phpinfo(); ?>
in Perl?
What information do you want to know? phpinfo apparently tells you almost everything:
Outputs a large amount of information about the current state of PHP. This includes information about PHP compilation options and extensions, the PHP version, server information and environment (if compiled as a module), the PHP environment, OS version information, paths, master and local values of configuration options, HTTP headers, and the PHP License.
You can get most of that somehow in Perl, but not all from the same place.
Config
module, which comes with Perl, has the compilation options for the interpreter$^V
has the version of the current interpreter (see perlvar)%ENV
has the environment (see perlvar)use Config qw(myconfig);
print myconfig();
prints much of the information that perl -V
does. You can also get individual elements of that information through the Config module.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With