Search notes:

Using Data::Dumper to show an object's type (class)

Data::Dumper can be used to show the type of a variable:
#!/usr/bin/perl
#
#  http://stackoverflow.com/a/5643298/180275

use warnings;
use strict;

use Data::Dumper;

use Crypt::Random qw(makerandom);

print Dumper(
#
#     So let's look at what makerandom actually returns.

      makerandom(Size => 256, Strength => 1)

#     Ah, a Math::Pari object
);

# Same thing, on command line
#   perl -MData::Dumper -MCrypt::Random=makerandom -e"print(Dumper(makerandom(Size => 256, Strength => 1)));"
Github repository PerlModules, path: /Data/Dumper/dump_crypt_random.pl

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759399360, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/Data/Dumper/show-underlying-object-type(57): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78