Search notes:

Perl module YAML::XS

use warnings;
use strict;

use YAML::XS;

my $var = {
   
    l => [ 'one', 'two', 'three', {'four' => 444, 'five' => 555 } ],
    h => { 'key 1' => 'aaa', 'key 2' => 'bbb', 'key 3' => 'ccc'}
};

print Dump $var; # compare with Dump of YAML

__END__
h:
  key 1: aaa
  key 2: bbb
  key 3: ccc
l:
  - one
  - two
  - three
  - five: 555
    four: 444
Github repository PerlModules, path: /YAML/XS/script.pl

See also

Perl modules

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