Skip to content

Instantly share code, notes, and snippets.

@jberger
Created October 25, 2019 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jberger/64b41e3591012606f7813497de53c20a to your computer and use it in GitHub Desktop.
Save jberger/64b41e3591012606f7813497de53c20a to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
use YAML::PP;
my $yaml = YAML::PP->new( schema => ['YAML1_1'] );
# or
#use YAML::PP::LibYAML;
#my $yaml = YAML::PP::LibYAML->new( schema => ['YAML1_1'] );
my $x = {'this' => 'on'};
print $yaml->dump_string($x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment