Search notes:

Perl module Data::Dumper

use warnings;
use strict;

use Data::Dumper;

my $foo = 'Foo';
my %bar = (1 => 'one', 'two' => 2, three => ['a', 'b', 'c']);

print Dumper ($foo);
#     $VAR1 = 'Foo';

print "\n\n";
print Dumper (\%bar);
#     $VAR1 = {
#               'three' => [
#                            'a',
#                            'b',
#                            'c'
#                          ],
#               '1' => 'one',
#               'two' => 2
#             };

print "\n\n";
print Dumper (%bar);
#     $VAR1 = 'three';
#     $VAR2 = [
#               'a',
#               'b',
#               'c'
#             ];
#     $VAR3 = '1';
#     $VAR4 = 'one';
#     $VAR5 = 'two';
#     $VAR6 = 2;
Github repository PerlModules, path: /Data/Dumper/script.pl

See also

Data::TreeDumper
Perl modules
Using Data::Dumper to show an object's type (class)
Using Data::Dumper to store variables in a file and later retrieve them again

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...', 1741107124, '18.117.156.90', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/Data/Dumper/index(81): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78