Created
September 11, 2010 01:15
-
-
Save skreuzer/574643 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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