Skip to content

Instantly share code, notes, and snippets.

@skreuzer
Created September 11, 2010 01:15
Show Gist options
  • Save skreuzer/574643 to your computer and use it in GitHub Desktop.
Save skreuzer/574643 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
use YAML::Tiny;
use Data::Dumper;
if(!@ARGV) {
print STDERR "Give me a file to parse.\n";
exit 1;
}
my $yaml_file = shift @ARGV;
my $yaml = YAML::Tiny->new;
$yaml = YAML::Tiny->read($yaml_file);
print Dumper($yaml);
exit 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment